SSH远程链接Ubuntu Server

Ubuntu默认没有安装openssh-server包,故从远程计算机经过SSH链接时会收到Connection refused的消息。ssh

首先在Ubuntu检查/etc/ssh/sshd_config文件是否存在。测试

cat /etc/ssh/sshd_config

Ubuntu默认状况下是不存在这个文件的。这时须要经过apt-get install安装openssh-server。spa

apt-cache search ^openssh
sudo apt-get install openssh-server

安装完成以后,再测试便可。code

相关文章
相关标签/搜索