Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gFTP SFTP: Needs to authenitate, how do I?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MattSharp
Apprentice
Apprentice


Joined: 15 Aug 2003
Posts: 258

PostPosted: Wed Jun 16, 2004 8:41 pm    Post subject: gFTP SFTP: Needs to authenitate, how do I? Reply with quote

So I am having problems with gFTP when I try to use the SSH2 to connect to an SFTP site. It doesn't have the key for the site and says

Quote:
Please connect to this host with the command line SSH utility and answer this question appropriately.


How do I do this? I have looked all around and I have SSHed to the site before but it isn't working. Any help would be great.
Back to top
View user's profile Send private message
sak102010
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2003
Posts: 82

PostPosted: Wed Jun 16, 2004 8:53 pm    Post subject: Reply with quote

One way to check to see if the key to the site is available is to look in

.ssh/known_hosts

This file is just a listing of the keys to the sites you've connected to via SSH. One per line. If you don't see the machine you're trying to connect to in there, then from a command line, just do
Code:

ssh user@host

... where 'host' can either be the fully qualified domain name of the server you're connecting to, or the IP address.

If there is already an entry for the machine in the known_hosts file, one thing to try is to delete the key for it and try to connect again to renew the key in your known_hosts file. This might be the case if the server you're connecting to uses a fully qualified domain name. There might be two entries in your known_hosts file for a machine with a fully qualified domain name, one key for the name, and one key for the IP address to the server. If for some reason they are different it would probably cause problems.
_________________
Thanks,
Sak
Back to top
View user's profile Send private message
MattSharp
Apprentice
Apprentice


Joined: 15 Aug 2003
Posts: 258

PostPosted: Thu Jun 17, 2004 2:56 pm    Post subject: Reply with quote

sak102010 wrote:
One way to check to see if the key to the site is available is to look in

.ssh/known_hosts

This file is just a listing of the keys to the sites you've connected to via SSH. One per line. If you don't see the machine you're trying to connect to in there, then from a command line, just do
Code:

ssh user@host

... where 'host' can either be the fully qualified domain name of the server you're connecting to, or the IP address.

If there is already an entry for the machine in the known_hosts file, one thing to try is to delete the key for it and try to connect again to renew the key in your known_hosts file. This might be the case if the server you're connecting to uses a fully qualified domain name. There might be two entries in your known_hosts file for a machine with a fully qualified domain name, one key for the name, and one key for the IP address to the server. If for some reason they are different it would probably cause problems.



I have tried this but I haven't tried deleting and renewiing the key. I was getting the impression that GFTP stored these known hosts in a different location and that is why it wasn't working.
Back to top
View user's profile Send private message
sak102010
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2003
Posts: 82

PostPosted: Thu Jun 17, 2004 3:45 pm    Post subject: Reply with quote

I don't know about gFTP, I've never used it. But my quess from the message you're recieving is that it's looking in the .ssh/known_hosts file for the key - which is why it wants you to connect via command line utility first, and probably answer the question, "Do you want to add this machine to your list of known hosts?"

Do you know much about the server you're trying to connect to? Is it some kind of load balanced server farm, where you connect to a hostname, but it gets forwarded to a different IP address. I wonder if something like this could be happening.
_________________
Thanks,
Sak
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum