How to Setup SSH Linux Operating System, SSH Provide Secure Communication between two nodes/coputers using encryptions like 3DES, Blowfish, AES, Arcfour, etc.Port forwarding, data compression are other features of SSH.
Let’s Start with the Installation.
SSH Installation
On Ubuntu/Debian based Linux:
$ sudo apt-get install openssh-server openssh-client
On Fedora/Cent OS based Linux:
# yum -y install openssh-server openssh-clients
On Arch Based Linux :
# pacman -S install openssh-server openssh-clients
SSH Configuration/Connection establishmant
To connect to a Computer via SSH use the following command :
$sudo ssh user@Ipaddress
System will ask the password of the system.Enter and proceed.
SSH Server Commands
For ubuntu based system:
To start SSH Server :
$ sudo /etc/init.d/ssh start
To stop SSH Server :
$ sudo /etc/init.d/ssh stop
To restart SSH Server :
$ sudo /etc/init.d/ssh restart
To find the status :
$ sudo /etc/init.d/sshd status
For Cent/Fedora use :
$ sudo service sshd start
To stop SSH Server :
$ sudo service sshd stop
To restart SSH Server :
$ sudo service sshd restart
To find the status :
# service sshd status
By default SSH is using the port 22 on the machine. If you want to change the port number edit the sshd_config file.
sudo gedit /etc/ssh/sshd_config
And change the port number
# What ports, IPs and protocols we listen for Port 100
Also, make sure that the new port you are not using any other application or not specified in the configuration file of any other application.
Note: Interface based applications can’t be operated via terminal.The core purpose is not that.However Interface can be taken for applications using some other techniques.For file editing purposes VI Editor is used.