sftp connection problems .. ssh key format not accepted

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
dragonfly41
500 Command not understood
Posts: 5
Joined: 2011-11-14 18:38
First name: D
Last name: L

sftp connection problems .. ssh key format not accepted

#1 Post by dragonfly41 » 2012-08-03 14:59

I'm in ubuntu 10.10 using FileZilla 3.3.3 trying to connect to Zend phpcloud via ssh
I first created new public keys (without passphrase) by this terminal command ...

sudo ssh-keygen -t rsa

This public key uploaded to phpcloud allows me to access my new phpcloud container.

key pair was created in

/home/user/.ssh/id_rsa
/home/user/.ssh/id_rsa.pub


and I setup /home/user/.ssh/config and /etc/ssh/ssh_config

But the problem is in making connection with phpcloud container using FileZilla (or even by terminal command)

In FileZilla Settings > SFTP I pointed to the private key in /home/user/.ssh/id_rsa

I then tried to connect:

Host: sftp://mycontainername.my.phpcloud.com
Username: mycontainername
Password: blank
Port: 22


but I get this error message ..

"Error: Could not connect to server"

I then tried going to FileZilla settings > SFTP to set the path to my private key ..

'/home/user/.ssh/id_rsa'

but I get an alert message from FileZilla ..

Convert keyfile

The file '/home/user/.ssh/id_rsa' is not in a format supported by FileZilla

Would you like to convert it to a supported format?


Why is my key format not accepted?
What format is expected from ssh-keygen?

===============================

If I try a connection via terminal command

sftp -v IdentityFile=/home/user/.ssh/id_rsa \ mycontainername@mycontainername.my.phpcloud.com

I get this error

'sftp -v IdentityFile=/home/user/.ssh/id_rsa \ mycontainername@mycontainername.my.phpcloud.com' returned 255

OpenSSH_5.5p1 Debian-4ubuntu6, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
ssh: Could not resolve hostname IdentityFile=/home/user/.ssh/id_rsa: Name or service not known
Couldn't read packet: Connection reset by peer


===============================

Am I missing some basic setup of SSH and/or FileZilla?

Why does FileZilla not accept the format of /home/user/.ssh/id_rsa ?

===============================

dragonfly41
500 Command not understood
Posts: 5
Joined: 2011-11-14 18:38
First name: D
Last name: L

[SOLVED] sftp connection problems .. ssh key format not acce

#2 Post by dragonfly41 » 2012-08-03 21:24

Ubuntu forum advised not to use sudo in generating keys and to add id_rsa.pub into
~/.ssh/authorized_keys

so I started again and generated new keys.
I converted private key ~/.ssh/id_rsa to PuTTy format for FileZilla to accept for authorization
and I've just made first connection through FileZilla.
So I'm hoping that this problem is now solved.

User avatar
boco
Contributor
Posts: 26912
Joined: 2006-05-01 03:28
Location: Germany

Re: sftp connection problems .. ssh key format not accepted

#3 Post by boco » 2012-08-04 03:50

using FileZilla 3.3.3
That version is not supported, please update to the latest 3.5.3.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

dragonfly41
500 Command not understood
Posts: 5
Joined: 2011-11-14 18:38
First name: D
Last name: L

Re: sftp connection problems .. ssh key format not accepted

#4 Post by dragonfly41 » 2012-08-04 10:04

I've now manually installed FileZilla 3.5.3 .. and it picked up the 3.3.3 settings .. thanks
FileZilla version 3.3.3 was previously installed from Synaptic Package Manager ubuntu 10.10

Post Reply