使用公钥 SSH 到 LXC 容器
ssh_to_container.sh
ssh [user]@[my-container-address]问题
ssh_permission_denied.txt
[user]@[my-container-address] Permission denied (publickey).解决方案
更改 sshd_config
edit_sshd_config.sh
vim /etc/ssh/sshd_config从此
sshd_config_before.txt
# PubkeyAuthentication no改为
sshd_config_after.txt
PubkeyAuthentication yes. 不要忘记将你的公钥添加到你的授权密钥中。
add_authorized_keys.sh
mkdir /home/[myuser]/.ssh & vim /home/[myuser]/.ssh/authorized_keysCheck out similar posts by category:
Allgemein
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow