0

ssh 客户端强制密码登录,不使用private key验证

never created at6 years ago view count: 2593

ssh 客户端怎样强制密码登录,不使用private key验证。因为服务器上面安装了个Gogs, ssh key冲突了。导致连不上去。

PTY allocation request failed on channel 0
Hi there, You've successfully authenticated, but Gogs does not provide shell access.
If this is unexpected, please log in with password and setup Gogs under another user.
report
回复
0

这个~/.ssh/config文件里面加入以下配置就行了。 重要的是PreferredAuthentications password

Host yun
Hostname 192.0.0.1
User  root
Port 22
PreferredAuthentications password
6 years ago 回复