开启ssh

版权声明:jathams(人勤事事易,人懒事事难) https://blog.csdn.net/Jatham/article/details/83903187
sudo apt-get update   #首先更新源  
sudo apt-get install openssh-server     #安装ssh服务
ps -e | grep ssh      #检测是否已启动
/etc/init.d/ssh start #看到有ssh字样,说明已启动,如果没有就手动启动
配置ssh-server,配置文件位于/etc/ssh/sshd_config,默认端口为22,为了安全,一般自定义为其他端口,然后重启
sudo /etc/init.d/ssh resart
在windows中,使用putty或者SSH Secure Shell等登录虚拟机

猜你喜欢

转载自blog.csdn.net/Jatham/article/details/83903187