18
16
I'm new to Linux (currently running Ubuntu 10.04) and I have just finished setting up SSH access to my Linux Machine. Currently, I have to use ssh root@x.x.x.x
to connect but would much rather be able to swap the IP for the computer name (like in Windows with \\name
) or a domain name (like computername.example.com
).
I don't really know where to start so any help would be most appreciated. Please go slowly, as mentioned - I am still new to this.
EDIT 1
Completely forgot to mention that I am trying to connect from Windows 7 (via PuTTY) - sorry.
Are you trying to connect just from within your LAN or from anywhere in the world? – Karl Bielefeldt – 2010-09-07T16:11:08.850
7Also, FYI allowing connections via ssh as root is generally considered a bad idea security-wise. It's recommended to log in as a regular user and use su or sudo from there. – Karl Bielefeldt – 2010-09-07T16:14:26.163
Both my LAN and the world (though I think I know how to set up the world access so this question is more for LAN) - and the root@ was more example than anything - I do actually use a user. – Ryall – 2010-09-07T16:17:30.023
Loads of great answers - thanks to everyone - though I had to pick one so I picked the most detailed. – Ryall – 2010-09-08T10:25:37.613