I'm not able to establish an ssh connection to one of my remote servers.
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 limited rights and it gives me the error
ssh-keygen: command is not found. Usually commands like
su all give me the same error
command is not found.
Since I'm able to create a connection over SFTP with Filezilla, can I manually fix this is problem? Also, if it's important, my
.ssh directory is empty, so there is no
known_host or something like this.
Here is the 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 firstname.lastname@example.org none debug1: kex: client->server aes128-ctr email@example.com none debug1: kex: firstname.lastname@example.org need=20 dh_need=20 debug1: kex: email@example.com 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 (let's call it Server 1) with PuTTy. On server 1 I have nearly zero rights to run anything besides
ssh and basic shell commands. On this server, I run a webshop which backups should stall on an other server (lets call it Server 2).
I wish I could use
sftp, but I can't use it and can't install it on server 1. So I have to go with
scp. I tried it with
curl sftp://xxx.xxx which to my surprise did work, but still gets me an new error
curl: (51) SSL peer certificcate or SSH remote key was not ok.