标签:style c class blog code tar
外部链接虚拟机linux服务的时候,一直未连接,后来发现没有安装ssh导致
以下是ssh安装步骤,具体过程请百度一下~
|
1 |
//可检查是否安装<br><br>root@kiwi-virtual-machine:~# <span style="color: rgb(255, 102, 0);">ssh localhost<br><br></span>ssh: connect to host localhost port 22: Connection refused |
|
1 |
root@kiwi-virtual-machine:~# <span style="color: rgb(255, 102, 0);">sudo apt-get
install openssh-server<br><br>//启动<br></span> |
|
1 |
root@kiwi-virtual-machine:~# <span style="color: rgb(255, 102, 0);">sudo /etc/init.d/ssh start</span><em style="line-height: 1.5;"><span style="color: rgb(255, 102, 0);"> <br><br>// </span></em><span style="color: rgb(255, 102, 0);">配置文件地址</span> |
|
1 |
root@kiwi-virtual-machine:~# <span> vi /etc/ssh/sshd_config<br><br></span> |
|
1 |
root@kiwi-virtual-machine:~# ifconfig -a //查看所有网卡 |
|
1 |
|
标签:style c class blog code tar
原文地址:http://www.cnblogs.com/kiwiphp/p/3752686.html