首先获取到root权限,一般来讲用户名密码都是andrax。
修改ssh配置
在龙终端执行命令,打开配置文件:
vi /etc/ssh/sshd_config
将配置文件 PermitRootLogin no 修改 PermitRootLogin yes ,我猜测作者是出于安全考虑关闭了root登录
启动ssh服务
service ssh start
查看所有服务
service --status-all
加号 + 表示已启动
修改putty配置
由于andrax使用的终端是zsh,它是高级shell程序,putty不支持zsh特性,因此要手动修改配置。
将按图示改为utf-8
启动putty
用putty连接ip,正常登录并显示
后续配置
当我们下次启动时还要执行 service ssh start,配置文件不用改了,为了自动启用ssh,我们在龙终端 设置--》通用设置--->初始化命令 添加命令
ehco 'andrax'|sudo -S service ssh start
service --status-all
配置好后下次只要打开龙终端即启动ssh