Tuesday, May 15, 2018

Some useful SSH Commands

Install SSH Server in Ubuntu

sudo apt-get install openssh-server

Run SSH Server

sudo service ssh restart

The output will be like

* Restarting OpenBSD Secure Shell server sshd [ OK ]

Check SSH Status

ps -ef |grep "sshd"

The output will be like

hduser@d1:/hadoopSetup$ ps -ef | grep "sshd"
root       125     0  0 02:35 ?        00:00:00 /usr/sbin/sshd
hduser     138    79  0 02:45 pts/2    00:00:00 grep --color=auto sshd

No comments: