免密登陆
ssh 免密码
1 | ssh-keygen # 生成密钥对 |
对服务器
1 | chmod 600 .ssh/authorized_keys |
/etc/ssh/sshd_config
1 | RSAAuthentication yes |
端口转发
(待更新)
GitHub ssh
添加到github中:
Settings–SSH and GPG Keys–Add SSH Key,粘贴 id_rsa.pub
验证:
1 | ssh -T git@github.com |
提示成功:
1 | Hi xxx! You've successfully authenticated, but GitHub does not provide shell access. |