Ssh (Secure Shell) Server

Telnet and FTP are well-known protocol but they send data in plain text format, which can be captured by someone using another system on the same network, including the Internet. On the other hand, all data transferred using OpenSSH tools is encrypted, making it inherently more secure. In this there are no need to define server and client any computer can be taken as server as well as client

Configuration of ssh

Three rpm are required to configure ssh server. openssh-server, portmap, xinetd. (rpm should be installed on both computers)
SSH server RPM
SSH server RPM

Start the services on both computers (client and server)
[root@ localhost ~] # service sshd restart
[root@ localhost ~] # service portmap restart
[root@ localhost ~] # service xinetd restart
To stop the server, execute the command service sshd stop. To verify that the server is running, use the command service sshd status.
To keep on these services after reboot on then via chkconfig command.
My one host is mohitraj and another host is client
Command to login one’s user via another host

Basic command of SSH Server

[root@ localhost ~] # ssh <another host ip> -l <another host user>
Do as shown in figure.
Basic command of SSH Server
Basic command of SSH Server is the ip of client host and sony is user of client host, above picture is self-explanatory
Run any command as root on the other host
Syntax of command
[root@localhost ~] # ssh root@<another host's ip> <command>
But to run this command you should know the password of root of another host
Run command of SSH Server
Run command of SSH Server

If you want to restart the another pc
Run command init of SSH Server
Run command init of SSH Server


If you like the tutorial do like and share and give feedback in comments.