Linked Questions
13 questions linked to/from Can I automatically add a new host to known_hosts?
201
votes
6
answers
189k
views
Non interactive git clone (ssh fingerprint prompt) [duplicate]
I want to clone a repo in a non-interactive way. When cloning, git asks to confirm host's fingerprint:
The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established.
RSA key ...
4
votes
2
answers
22k
views
Add remote host to known_hosts file without prompt [duplicate]
I wrote some scripts and wish to add a remote host to my known_hosts file without any interaction. I can run a command like ssh -o "StrictHostKeyChecking no" [email protected] which will add the remote ...
1
vote
0
answers
66
views
How to auto accept new ssh fingerprints but decline changed? [duplicate]
I have a script that deals with some servers in an environment where new hosts are added once in a while. I'd like to avoid being asked whether new fingerprint should be accepted but be warned if any ...
229
votes
11
answers
705k
views
"Add correct host key in known_hosts" / multiple ssh host keys per hostname?
Trying to ssh into a computer I control, I'm getting the familiar message:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@...
72
votes
8
answers
153k
views
Securely add a host (e.g. GitHub) to the SSH known_hosts file
How can I add a host key to the SSH known_hosts file securely?
I'm setting up a development machine, and I want to (e.g.) prevent git from prompting when I clone a repository from github.com using SSH....
10
votes
2
answers
14k
views
ssh-keyscan - still promoted with The authenticity of host '[hostname] ([IP address])' can't be established
I am scripting a remote rsync setup, and need to add a remote server to the local known_hosts file to avoid getting prompted wit the below when the script is first ran:
The authenticity of host '[...
0
votes
1
answer
2k
views
sshd is not honoring sshd_config settings
I am adding the following settings to my docker based centos 7 /etc/ssh/sshd_config file:
Match User ansible
PermitEmptyPasswords yes
PasswordAuthentication no
PermitRootLogin ...
1
vote
1
answer
4k
views
Jenkins slave unable to clone from Gitlab
I have an autoscaling Jenkins cluster on AWS, which spawns & runs agents via JNLP. Both Master & Slaves run on Ubuntu. I don't quite understand where Jenkins actually stores the SSH keys for ...
0
votes
1
answer
3k
views
What is the host key (the one from ssh connection) and how is it different from public-private key pair?
The situation is that I've had a VPS created previously. It was all set up, private-public key authentication, root login turned off, password login turned off. Everything was set up.
Then this server ...
0
votes
2
answers
2k
views
SSH failing from script, working on command line (Git)
Have 3 servers: Local, Bare, Development.
The following workflow works perfectly:
1. Make my local changes
2. git push to Bare
3. ssh into Bare
4. $ ssh ip.of.Development.server "cd /path/to/...
1
vote
3
answers
375
views
gitosis public key
On my client I am attempting to run:
git clone gitosis@DevServer:gitosis-admin.git
I get a warning:
The authenticity of host '10.1.1.13
(10.1.1.13)' can't be established. RSA
key fingerprint ...
0
votes
1
answer
598
views
What is the best method for adding RSA Key Fingerprints to known_hosts upon provisioning each server?
This question was inspired by this thread
The hypothetical scenario, for context is as follows:
SSH servers, whether they be routers, firewalls etc. are all firstly provisioned within a private + ...
0
votes
0
answers
120
views
How safely obtain and check host public key for `known_hosts`?
For a newly deployed instance I get the following message for the first time SSH connection:
The authenticity of host '[hostname] ([IP address])' can't be established.
RSA key fingerprint is [key ...