ssh connect to host port : Connection refused

 Problem: ssh request denied

pruce@~$ ssh [email protected]
ssh: connect to host 10.60.100.172 port 22: Connection refused

 Solution one:

#Check if ssh is installed normally
pruce1 @ ~ $ ps -ef | grep ssh
pruce1     3826   3743  0 11:56 pts/1    00:00:00 grep --color=auto ssh

 New Ubuntu does not have openssh-server installed

#install service
sudo apt-get install openssh-server
pruce1 @ ~ $ ps -ef | grep ssh
root       3589      1  0 11:51 ?        00:00:00 /usr/sbin/sshd -D
root       3678   3589  0 11:52 ?        00:00:00 sshd: pruce1 [priv]
pruce1     3742   3678  0 11:52 ?        00:00:00 sshd: pruce1@pts/1  
pruce1     3826   3743  0 11:56 pts/1    00:00:00 grep --color=auto ssh

 The ssh link is normal, OK.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326775751&siteId=291194637