SSH连接配置

1、 为系统安装SSH工具

apt-get install openssh-server

2、 启动ssh的服务

/etc/init.d/ssh start

3、 查看一下进程,是否已经启动了指定的服务

ps -e | grep sshd

4、 ubuntu默认情况下不允许root用户登录

  • i、 使用vim打开“/etc/ssh/sshd_config”文件

vim /etc/ssh/sshd_config

  • ii、对PermitRootLogin的内容修改,将其内容设置为yes
  • iii、修改完成之后保存退出。

:wq!

5、 打开SSH的连接工具(SecureCRTPortable)

需要知道本机的ip地址:ifconfig,(192.168.198.128)

 

退出:exit

原文地址:https://www.cnblogs.com/kingshine007/p/8081098.html