OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions. [www.openssh.com]
Here’s the summary of commands on installing and configuring SSH in Ubuntu.
SSH INSTALLATION
To install OpenSSH client:
sudo apt-get install openssh-client
(open-ssh client is installed by default)
To install OpenSSH server:
sudo apt-get install openssh-server
SSH CONFIGURATION
To test if ssh server is running:
ssh localhost ssh user@server_ip_address
To stop ssh server:
sudo /etc/init.d/ssh stop
To start ssh server:
sudo /etc/init.d/ssh start
To restart ssh server
sudo /etc/init.d/ssh restart
CONNECT AND DISCONNECT FROM A CLIENT
To connect to a remote host:
ssh user@remote_pc's_ip_address
To disconnect from a remote host:
exit