P
P
psngut2017-04-28 13:24:41
SSH
psngut, 2017-04-28 13:24:41

Automating the authorization process via SSH?

When creating a tunnel via ssh, I ran into a small problem.
when I create a tunnel, it asks to create a key, and if you need to create many tunnels, then how to automate the process using a bash script so that you do not enter yes\n
so that the system automatically saves keys in /.ssh/known_hosts

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Leonid, 2017-04-28
@psngut

Set ssh config to StrictHostKeyChecking no

S
Saboteur, 2017-04-28
@saboteur_kiev

It asks not to create a key, but to add a new host to the list of known hosts. This is done once, the first time you connect via ssh to a host that you have never connected to before.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question