sh ssh.sh
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh ssh.sh相关的知识,希望对你有一定的参考价值。
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh user@host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
# or
cat ~/.ssh/id_rsa.pub | ssh-copy-id user@host
ssh-add -K ~/.ssh/id_rsa
# You might need to start ssh-agent
eval `ssh-agent -s`
# Force ssh client to use only password auth
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no user@host
# Use ssh key
ssh -i SMPL.pem -o 'IdentitiesOnly yes' user@host
# Disable password authentication in ssh
sudo nano /etc/ssh/sshd_config
PasswordAuthentication no
sudo service ssh restart
以上是关于sh ssh.sh的主要内容,如果未能解决你的问题,请参考以下文章
sh ssh.sh
sh ssh.sh
sh ssh.sh
sh ssh-copy-id.sh
sh poor-mans-ssh.sh
sh ssh_socks_proxy_server.sh