ssh或ssh-copy-id首次访问免yes

2021-02-02

ssh或ssh-copy-id免输yes,ssh首次访问总是提示Are you sure you want to continue connecting (yes/no)

1、ssh -o stricthostkeychecking=no
ssh-copy-id -o stricthostkeychecking=no

2、ssh-copy-id -i .ssh/id_rsa.pub root@192.168.0.1

3、ssh -J u3@192.168.56.5 u2@192.168.57.3

分类:Linux | 标签: |

相关日志

评论被关闭!