Post thumbnail of Fix for Unable to open a connection to the libvirt management daemon
4 January 2012
Continue reading Fix for Unable to open a connection to the libvirt management daemon

Fix for Unable to open a connection to the libvirt management daemon

When you try to connect to a remote virtual machine host server and get the Virtual Machine Manager Connection Failure window shown below, the problem should be one of only two things. Either libvirtd really isn’t running and you need to start it, or you don’t have openssh-askpass installed.

Post thumbnail of Dbus session bus address with applications using SSH
26 February 2011
Continue reading Dbus session bus address with applications using SSH

Dbus session bus address with applications using SSH

With one host connecting and launching dbus sessions, this should work. You can get the variable from running sessions in /proc/ /environ. But as soon as you have multiple hosts, you need to figure out which host you’re coming from.

Post thumbnail of Get X11 to forward in Gnome on Fedora 12 or 13
20 April 2010
Continue reading Get X11 to forward in Gnome on Fedora 12 or 13

Get X11 to forward in Gnome on Fedora 12 or 13

If you need to forward X the old school unencrypted way, you need to add one line to gdm’s custom.conf file and restart the desktop. Without this, the old “xhost +” won’t do a thing because the out of the box Xorg configuration includes the nolisten tcp flag.

Post thumbnail of SSH Captchas and Man In The Middle Attacks
5 February 2010
Continue reading SSH Captchas and Man In The Middle Attacks

SSH Captchas and Man In The Middle Attacks

I can see a use of this type of attack for getting around captchas. If I host a web page that gives you access to download free mp3s, and all you have to do is complete a captcha to get it, what if I get that captcha from another site? I mean, when you load my page, I load the site I want to attack and show you their captcha instead?! That would basically make you my captcha-cracking conscript!

Post thumbnail of Download and build proxytunnel in Fedora
10 December 2009
Continue reading Download and build proxytunnel in Fedora

Download and build proxytunnel in Fedora

Proxytunnel is a program that connects stdin and stdout to a server somewhere on the network, through a standard HTTPS proxy. Getting it built seems to be pretty straight forward stuff.

Post thumbnail of Remote desktop via VNC in SSH
8 October 2009
Continue reading Remote desktop via VNC in SSH

Remote desktop via VNC in SSH

rootninja@rootninja ~ ]$ ssh -Y remotehost “vncserver :1 && vncviewer localhost:1″
Starting applications specified in /home/rootninja/.vnc/xstartup
Log file is /home/rootninja/.vnc/remotehost.com:1.log

Post thumbnail of Instakill SSH sessions to mess with ssh-happy users on your box
14 August 2009
Continue reading Instakill SSH sessions to mess with ssh-happy users on your box

Instakill SSH sessions to mess with ssh-happy users on your box

Want to have some fun with users that keep ssh’ing to your box? Let them in, then kill them right away. I don’t even remember when/why I wrote this silly script, but here it is. There’s a lot better ways you could do this, and if you want any real ssh security, don’t even let them log in at all.

Post thumbnail of No ssh port forwarding for you!
13 February 2009
Continue reading No ssh port forwarding for you!

No ssh port forwarding for you!

I just saw a recent article describing some simple ssh attacks that looked a little funny to me. So I figured I’ll test them out. The one that smelled funny was using local and remote port forwarding on itself, localhost. It just doesn’t work on modern linux …

Post thumbnail of Gaining shell access to a VMware ESXi server
12 February 2009
Continue reading Gaining shell access to a VMware ESXi server

Gaining shell access to a VMware ESXi server

Accessing the hidden VMware ESXi service console was supposed to be done only while working directly with a VMware technician, but it’s just so darn handy when you’re a command line junkie, that how can you resist right?

Post thumbnail of Add your public SSH keys to a remote host’s authorized_keys in a single command
14 November 2008
Continue reading Add your public SSH keys to a remote host’s authorized_keys in a single command

Add your public SSH keys to a remote host’s authorized_keys in a single command

[user@localhost ~]$  cat ~/.ssh/id_rsa.pub ~/.ssh/id_dsa.pub | ssh user@remotehost ’sh -c “cat - >> ~/.ssh/authorized_keys”‘
You’ll be prompted for the password just this one last time.  This is perfect for running a script that runs several remote commands through ssh.  Here’s a script that checks for your keys and adds them if …

 Page 1 of 2  1  2 »
Powered by Wordpress   |   Lunated designed by ZenVerse