Questions tagged [known-hosts]
44 questions
0
votes
1 answer
known hosts deleted / login fails
I deleted the known_host entries on a 1&1 Virtual Server. I once had changed the original root pwd for the server. With the new pwd as of right now, I can't login any more. The 1&1 support guy said the server is lost and i need to setup a new one.…

Frank
- 1
0
votes
0 answers
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 Ubuntu system using ssh-add, and uploaded the key to…

Aaron Franke
- 116
- 1
- 2
- 5
0
votes
1 answer
SSH host key check fails on Debian version, but not on MacOS version
I have this strange situation with host-key checking. ssh -v github.com:
works with "OpenSSH_7.9p1, LibreSSL 2.7.3" on MacOS Mojave (10.14.5 (18F132)):
debug1: Server host key: ssh-rsa
SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
debug1:…

Dominik
- 287
- 2
- 9
0
votes
2 answers
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 but I can not ping etc.
It looks like ssh-keyscan is not using the…

stone.212
- 277
- 1
- 2
- 12
0
votes
2 answers
known_host for SSH connection
I program an application in Java. This application make a connection between two PC (One Windows and One Linux). My application must make a connection and make few commands. Among commands, I want transfer a file.
This connection is a SSH…

Tom Laratte
- 1
- 1
- 1
0
votes
1 answer
Cant find "known_hosts" file
one short and probably stupid thing is annoying me...
I can't find my 'known_hosts' file on my Windows Server 2008 but it must exist.
On the server I have a git-repository that others can access and this works perfectly.
However my own coding stuff…

Steini
- 103
- 1
- 1
- 3
0
votes
6 answers
Sed regexp /d deleting whole file
Given a typical known_hosts file:
[123.45.67.89]:22 ssh-rsa bbuivvhbkbjdnflksndkfnksnfk...
[98.76.54.32]:14444 ssh-rsa hohdibsodbfoasbfbsabdfbsd...
[77.34.122.33]:32209 ssh-rsa bksdjncknsdbcksbdcbhdhhb...
Not knowing the line# in the file, but…

Cor
- 15
- 1
- 5
0
votes
1 answer
CentOS5 & OpenSSH not recognizing 'HashKnownHosts' and 'StrictHostKeyChecking' directives in sshd_config
I am running the latest build of OpenSSH (4.3p2) from CentOS 5. When I attempt to start the server with /etc/init.d/sshd start, this is the output from bash:
Starting sshd:
/etc/ssh/sshd_config: line 130: Bad configuration option:…

Rob
- 262
- 3
- 9
- 23
0
votes
2 answers
Passwordless ssh from Windows to Linux to run scripts from command prompt
What am trying here is .....
I Have some scripts that needs to run in Windows Command (command.exe) and not from Cygwin.
The scripts needs to access a specific Linux machine from Windows command prompt and it asks for a password every time the…
user58489
0
votes
1 answer
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 gets destroyed and a new server gets…

michal roesler
- 145
- 1
- 6
0
votes
1 answer
How to fix offending key phrase, that pops up again and again?
For a github repo I want to update it and I type
git fetch --all
on the command line, but I am always asked
Warning: the ECDSA host key for 'xxx.yyy' differs from the key for the IP address '123.456.789.000'
Offending key for IP in…

Alex
- 105
- 1
- 2
- 12
0
votes
1 answer
ssh-keyscan to known_hosts produces no results
When I execute:
ssh-keyscan -H 172.22.56.2
I get the following output:
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22 SSH-2.0-RomSShell_4.31
# 172.22.56.2:22…

A L
- 137
- 1
- 9
-1
votes
1 answer
ubuntu // running an ssh command as a specific user
I'm looking to add github to known_hosts for the deploy user when the command is ran by the root user.
The command would be :
ssh -T -o "StrictHostKeyChecking no" git@github.com
Using cloudinit, it runs initially with the root user, so this command…

Ben
- 113
- 1
- 9
-2
votes
1 answer
~/.ssh/known_hosts file - how to set it up?
I'm trying to SCP a file from my server to another server. The command I'm using is:
scp -i private.ppk -P 22 foo.txt someuser@domain.com:/home/someuser/foo.txt
When I run this via the command line, I get prompted:
The authenticity of host…

snoopy76
- 103
- 1
- 3