[sftp] SFTP server, connection failed

Xantra -  
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   -
Hello,
I just set up an SFTP server with MySecureShell, but when I connect over a local network, my client's log says this:
Status: Connecting to 192.168.1.120:22 ...
Status: Connected to 192.168.1.120:22, initializing SFTP connection...
Command: CONNECT tom@192.168.1.120:22
Response: Fatal: unable to initialize SFTP: could not connect
Error: Unable to connect!

I ran MySecureShell -configtest on my server to check the configuration and it's ok, I disabled the firewall and it still does the same. Does any FTP SSL pro have an idea?
Thanks in advance
Configuration: Windows XP Firefox 2.0.0.4 FileZilla

5 réponses

mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 935
 
Is the SSH server running on 192.168.1.120?
To start the SSH server on the machine 192.168.1.120:
/etc/init.d/sshd start

To check if the SSH port is open from the client, you can use nmap.
Example on my machine:
(mando@aldur) (~) $ nmap 192.168.1.13 Starting Nmap 4.20 ( https://insecure.org/ ) at 2007-06-26 02:40 CEST Interesting ports on 192.168.1.13: Not shown: 1694 closed ports PORT STATE SERVICE 22/tcp open ssh 111/tcp open rpcbind 113/tcp open auth Nmap finished: 1 IP address (1 host up) scanned in 6.610 seconds 

Specifically, you just need to install nmap and type on the client (which uses sftp):
nmap 192.168.1.120

If the SSH port is closed and the SSH server is running, it might be a firewall issue.

Good luck
0