ssh: connect to host 192.168.1.49 port 22: Connection refused

Mac连接本地虚拟机报错:

ssh: connect to host 192.168.1.49 port 22: Connection refused
 

解决:

1、查看有没有启动sshd服务

ps -e | grep ssh

如图:果然没有启动

2、手动启动sshd服务

/etc/init.d/ssh start

3、再次连接

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章