Skip to main content
1 of 2
sHamann
  • 391
  • 1
  • 3
  • 3

cant establish ssh connection

So as the title say im not able to establish an ssh connection to one of my remote server.

I have the address, username and password for both.

To create the ssh connections as follow ssh user@server which gives me the following error Host key verification failed.

The most common answer to this topic is to run ssh-keygen -R hostname. The Problem is on my remote Server i have very limit rights and it gives me the error ssh-keygen: command is not found. usally commands like service oder su all gives me the samer error command is not found.

Since im able to create a connection over SFTP with Filezilla, can I manually fix this is Problem? Also if its important my .ssh directory is empty, so there is no known_host oder something like this.

Here ist he full output of ssh -v user@server

OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Connecting to XXX port 22.
debug1: Connection established.
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_rsa-cert type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: identity file /.ssh/id_dsa-cert type -1
debug1: identity file /.ssh/id_ecdsa type -1
debug1: identity file /.ssh/id_ecdsa-cert type -1
debug1: identity file /.ssh/id_ed25519 type -1
debug1: identity file /.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1Debian-5+deb8u4
debug1: match: OpenSSH_6.7p1 Debian-5+deb8u4 pat OpenSSH* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr [email protected] none
debug1: kex: client->server aes128-ctr [email protected] none
debug1: kex: [email protected] need=20 dh_need=20
debug1: kex: [email protected] need=20 dh_need=20
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: RSA XXX
debug1: read_passphrase: can't open /dev/tty: No such file or directory
Host key verification failed.

I use my Windows PC which connects to a remote Server over ssh (lets call it Server 1) with PuTTy. On server 1 i have nearly zero rights to run anything besides scp and ssh and basic shell commands. On this server i run an webshop which backups should stall on an other server (lets call it Server 2).

I wish i could use sftp, but i cant use it and cant install it on server 1. So I have to go with scp. I tried it with curl sftp://xxx.xxx which for my surprise did work, but still get me an new error curl: (51) SSL peer certificcate or SSH remote key was not ok

sHamann
  • 391
  • 1
  • 3
  • 3