Problem with SFTP
I typed sftp myusername@ftp.myservername.com/ at the command line, and I get the error message
"ssh: Could not resolve hostname ftp.myservername.com/ : Name or service not known.
Couldn't read packet: Connection reset by peer"
When I ping myusername I get the correct IP address. When I ping ftp.myservername.com I also get my correct IP address. In addition, Iceweasel connects to ftp.myservername.com very nicely, so a lot of software is working.
I did some reading on the web and learned that files /etc/resolv.conf and /etc/hosts may have something to do with the problem. Can you tell me if they are correct? Here is what my files read:
file - /etc/resolv.conf
nameserver server IP
nameserver server IP
file - /etc/hosts
192.168.1.106 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 debian
130.89.148.12 ftp.debian.org
server IP username
What am I doing wrong? Please help,
Vito Faraci Jr.
Hello,
Quote from: vfaraci on August 08, 2013, 02:23:58 AM
"ssh: Could not resolve hostname ftp.myservername.com/ : Name or service not known.
Just read the error message!, remove that final slash. If you want to specify a directory use
:/directory