« HOWTO: Split Large Files and Rebuild ThemBacking Up and Restoring »

HOWTO: Install and Configure ssh

30/07/08

Permalink 07:10:39 pm, by richard Email , 216 words   English (GB)
Categories: Ubuntu Linux, OS and Systems Administration, Network and Connectivity

HOWTO: Install and Configure ssh

I install openssh server and sort out setting up the right ssh keys for the user so I can login to other machines locally without a password. This is a security risk! I want to use Xwindows programs installed and run on one machine while actually running on another, hence the ForwardX11 bit.

Follow up:

To allow a user from one machine to login to another another machine, you need to update the authorized user file to include the details from the guests id_rsa.pub. It is the same as saying if my friend uses their front door key in my lock it will work.

sudo apt-get install openssh-client openssh-server
Setup SSH:
ssh-keygen -t rsa  
cd ~/.ssh  
echo ForwardX11=yes > ~/.ssh/config  
cp id_rsa.pub authorized_keys  
chmod 600 ~/.ssh/config  ~/.ssh/authorized_keys

Now copy the public key from the client machine to the authorized keys of the client

gedit authorized_keys /opt/linux32_home/richard/.ssh/id_rsa.pub

And then do the same thing the other way around.

gedit /opt/linux32_home/richard/.ssh/authorized_keys id_rsa.pub

Now test that you can actually ssh to/from linux60 without a password. No need to reboot or logout. If you cannot you did it wrong.

Security Issue
This is a security risk, only do this if you accept this and are willing to take the chance. Remember it was your choice to do this not mine!

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
What can birds and aeroplanes both do?
antispam test