Quantcast
Channel: How can I automate adding entries to .ssh/known_hosts? - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by Praveen Kumar BS for How can I automate adding entries to...

You can use the below option to not have to enter yes for each host with newer versions of ssh: ssh -o 'StrictHostKeyChecking accept-new' host

View Article



Answer by DopeGhoti for How can I automate adding entries to .ssh/known_hosts?

ssh-keyscan will check, but not verify, a remote host key fingerprint. Iterate through the host list and append to ~/.ssh/known_hosts: while read host; do if entry=$(ssh-keyscan $host 2> /dev/null);...

View Article

How can I automate adding entries to .ssh/known_hosts?

I administer a lot of hosts, and every time I ssh into a new batch for the first time, it is tedious to tell my secure shell client yes for each and every host that I accept the host key fingerprint...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images