Arch Linux开启SSH远程安装

现在你的眼前应该可以看到[root@archiso~]#的提示。

首先,建立目标机器的网络设置:

安装和升级软件包前,先让本地的包数据库和远程的软件仓库同步是个好习惯。

[root@liujunjun~]#pacman –Syy openshh

访问 arch Linux 主机的该文件

vim /etc/ssh/sshd_config

对应注释部分后边补上下边三行:

LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

接着重启 SSH 服务:

systemctl restart sshd.service

现在就可使用远程连接工具进行远程连接了。注意:旧版本的SecureCRT连接可能会连接不上。报错

Key exchange failed.
No compatible key exchange method. The server supports these methods: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

或者升级,或者用其他的连接工具,比如MobaXterm_CHS就可以

 

posted @ 2021-02-09 10:10  星火撩原  阅读(813)  评论(0)    收藏  举报