All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
885 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 ...
michal roesler's user avatar
0 votes
0 answers
4k views

ECDSA host fingerprint changes if the host is already known

I'm using a web hosting service that offers both FTP and SSH access, but for SSH they only allow authentication via SSH keys. I've generated myself SSH keys using ssh-keygen, imported them into my ...
Aaron Franke's user avatar
0 votes
2 answers
2k views

ssh-keyscan does not read .ssh/config?

I am using ssh-keyscan in a shell script to accept keys for hosts. The hosts are identified by hostname but not in /etc/hosts. They are in ./ssh/config so I can ssh <hostname> but I can not ...
stone.212's user avatar
  • 277
4 votes
2 answers
5k views

SSH known_hosts with a dynamic IP

I have a machine behind a firewall. I connect to it remotely using a VPN tunneling with a port forward through ssh. To connect to the machine I use the external IP of the VPN and my personal and ...
Ilmanowar's user avatar
2 votes
1 answer
1k views

OpenSSH adds <IPv6>%2 to known_hosts

When I connect to a CentOS 7 host with IPv6 my ssh client always adds <IPv6 host addr>%2 to known_hosts even though the host key for this host (with the host's IPv6 address) is already present ...
Felix Schwarz's user avatar
1 vote
0 answers
3k views

Warning: Remote host identification has changed (SSH)

Most likely someone did a server update last night, because when I try to do a rsync (from win 7) I get the message (short version): WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! It is possible ...
Steven's user avatar
  • 275
1 vote
1 answer
6k views

How to save ssh-keyscan result with the port to .ssh/known_hosts

When I run ssh-keyscan -p NNN -t rsa GITHOST it produces sting like GITHOST ssh-rsa ...
kmmbvnr's user avatar
  • 111
38 votes
2 answers
4k views

Is there a security risk to disclosing your SSH known_hosts file?

I'm speaking at a conference next week about some software tools I've created. My laptop will be shown on a projector screen during this presentation. The presentation will be videotaped and posted ...
Matt Korostoff's user avatar
4 votes
2 answers
21k 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 ...
VenomFangs's user avatar
40 votes
9 answers
108k views

Auto accept rsa key fingerprint from command line

I've tried yes | ssh [email protected] to try to accept the RSA key fingerprint, but am still prompted if I'm sure I want to connect. Is there a way to make this automatic?
VenomFangs's user avatar
1 vote
1 answer
3k views

SSH known_hosts holds duplicate keys for same server

I notice my local ~/.ssh/known_hosts file has two entries for the same machine on the local LAN: somemachine,192.168.1.200 ssh-rsa KEY... somemachine.search.domain ssh-rsa KEY... It's the same key,...
xref's user avatar
  • 273