- ssh第一次输入免yes
方法一:连接时加入StrictHostKeyChecking=no
ssh -o StrictHostKeyChecking=no root@192.168.1.100
方法二:修改/etc/ssh/ssh_config配置文件,添加:
StrictHostKeyChecking no
- ssh-keygen免交互
ssh-keygen -t rsa -P “” -f ~/.ssh/id_rsa
ssh-keygen -t rsa
Let’s build great from here
方法一:连接时加入StrictHostKeyChecking=no
ssh -o StrictHostKeyChecking=no root@192.168.1.100
方法二:修改/etc/ssh/ssh_config配置文件,添加:
StrictHostKeyChecking no
ssh-keygen -t rsa -P “” -f ~/.ssh/id_rsa
ssh-keygen -t rsa