Skip to main content
Bumped by Community user
Bumped by Community user
deleted 17 characters in body; edited title
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

cant Can't establish ssh connection: "debug1: read_passphrase: can't open /dev/tty: No such file or directory" and "Host key verification failed."

So as the title say imI'm not able to establish an ssh connection to one of my remote serverservers.

I have the address, username and password for both. I have the address, username and password for both.

The most common answer to this topic is to run ssh-keygen -R hostname. The Problemproblem is on my remote Server iserver I have very limitlimited rights and it gives me the error ssh-keygen: command is not found. usallyUsually commands like service oderor su all givesgive me the samersame error command is not found.

Since imI'm able to create a connection over SFTP with Filezilla, can I manually fix this is Problemproblem? Also, if itsit's important, my .ssh directory is empty, so there is no known_host oderor something like this.

Here ist heis the full output of ssh -v user@server

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

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

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.

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

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

Can't establish ssh connection: "debug1: read_passphrase: can't open /dev/tty: No such file or directory" and "Host key verification failed."

I'm not able to establish an ssh connection to one of my remote servers.

I have the address, username and password for both.

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 service or 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

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 scp and 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.

Source Link
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