Monday, November 19th, 2007

Enable SSH Access to Xubuntu

Well, I’ve been playing around with Xubuntu Linux for a while now and I have been making extensive use of SSH. If you haven’t heard of SSH yet, here’s a quick rundown from wikipedia:

SSH is typically used to log into a remote machine and execute commands, but it also supports tunneling, forwarding arbitrary TCP ports and X11 connections; it can transfer files using the associated SFTP or SCP protocols.

While I found SSH very useful to connect to remote servers from my Xubuntu Desktop, there were times when I needed to make an SSH connection back to my computer say for example - transferring files using SCP. This was the case for me earlier today. I had to transfer a file from our testing server back to my desktop. To do this, I had to enable the Open SSH server on my Workstation which does not come installed by default.

$ sudo aptitude install openssh-server

Once this is done, I was good to go.

Connect to testing server through SSH:

rvdavid@workstation$ ssh rvdavid@testing.server
password:

Transfer a file to the Desktop of my workstation using SCP:

rvdavid@testing-server$ scp /path/to/file.tar.gz rvdavid@192.168.0.3:/home/rvdavid/Desktop/

The file was transfered shortly after.

To conclude, the potential show stopper here would have been not knowing that Open SSH server was not installed by default. To me, it seemed daunting at the time, I thought I would have needed to use some complex configuration file hacking, but I was pleasantly surprised that it was as easy as installing Open SSH server.

» Filed under Linux by rvdavid at 21:30.

back to top

Leave a comment





Credits:

© rvdavid blogs: Web Development | Powered by WP 2.3.1

Tree theme modified based on headsetoptions