Using SSH to Log Into a Remote Machine
Using SSH is similar to TELNET. To log in from another Linux box use the ssh command with a -l to specify the username you wish to log in as. If you leave out the -l, your username will not change. Here are some examples for a server named Smallfry in your /etc/hosts file. You can also use the username@remote_server format as an alternative.
If you are user root and you want to log into Smallfry as yourself, use the command:
[root@bigboy tmp]# ssh smallfry
User root can also log into Smallfry as user peter via the default port 22:
[root@bigboy tmp]# ssh -l peter smallfry
or via port 435 using the username@remote_server alternative login format:
[root@bigboy tmp]# ssh -p 435 peter@smallfry
 |