14.4. OpenSSH Clients
14.4.1. Using the ssh Utility
sshutility allows you to log in to a remote machine and execute commands there. It is a secure replacement for the
telnetcommand, log in to a remote machine by using the following command:
penguin.example.com, type the following at a shell prompt:
The authenticity of host 'penguin.example.com' can't be established. RSA key fingerprint is 94:68:3a:3a:bc:f3:9a:9b:01:5d:b3:07:38:e2:11:0c. Are you sure you want to continue connecting (yes/no)?
yesto confirm. You will see a notice that the server has been added to the list of known hosts, and a prompt asking for your password:
Warning: Permanently added 'penguin.example.com' (RSA) to the list of known hosts. email@example.com's password:
~/.ssh/known_hostsfile. Contact the system administrator of the SSH server to verify the server is not compromised, then remove the line with the name of the remote machine at the beginning.
sshprogram can be used to execute a command on the remote machine without logging in to a shell prompt:
/etc/redhat-releasefile provides information about the Red Hat Enterprise Linux version. To view the contents of this file on
ssh firstname.lastname@example.org cat /email@example.com's password: Red Hat Enterprise Linux Server release 6.2 (Santiago)