mirror of https://github.com/docker/docs.git
Disable password authentication in SSH command
This will turn off the password authentication prompt which some SSH commands experience if there is a lag between when we attempt the first SSH command and the key has been loaded on the server. Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
parent
5229643a22
commit
93b4799279
|
@ -47,6 +47,7 @@ const (
|
||||||
|
|
||||||
var (
|
var (
|
||||||
baseSSHArgs = []string{
|
baseSSHArgs = []string{
|
||||||
|
"-o", "PasswordAuthentication=no",
|
||||||
"-o", "IdentitiesOnly=yes",
|
"-o", "IdentitiesOnly=yes",
|
||||||
"-o", "StrictHostKeyChecking=no",
|
"-o", "StrictHostKeyChecking=no",
|
||||||
"-o", "UserKnownHostsFile=/dev/null",
|
"-o", "UserKnownHostsFile=/dev/null",
|
||||||
|
|
Loading…
Reference in New Issue