
获得徽章 6
赞了这篇文章
mobaxterm连接服务器(阿里云的)报错:
```
login as: root
No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
```
连不上服务器了,需要使用阿里云的VNC连接,
```
# 备份原配置
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
# 编辑SSH配置
vi /etc/ssh/sshd_config
# 修改以下参数:
PasswordAuthentication yes
PubkeyAuthentication yes
PermitRootLogin yes
# 重启SSH服务
systemctl restart sshd
```
然后就可以用mobaxterm连接了。
vi命令还是要熟悉熟悉,之前太依赖mobaxterm了。
vim、vi、nano中,泛用性最高的就是vi了【它是最基础的文本编辑器!!!!!】,掌握一下还是比较值得的。
```
login as: root
No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
```
连不上服务器了,需要使用阿里云的VNC连接,
```
# 备份原配置
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
# 编辑SSH配置
vi /etc/ssh/sshd_config
# 修改以下参数:
PasswordAuthentication yes
PubkeyAuthentication yes
PermitRootLogin yes
# 重启SSH服务
systemctl restart sshd
```
然后就可以用mobaxterm连接了。
vi命令还是要熟悉熟悉,之前太依赖mobaxterm了。
vim、vi、nano中,泛用性最高的就是vi了【它是最基础的文本编辑器!!!!!】,掌握一下还是比较值得的。
展开
评论
点赞