Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-18-2009, 04:07 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 21

Rep: Reputation: 0
Problem facing while using SFTP

Hi All,

While I am connecting to a windows server from linux server using SFTP.

It is showing

Connecting to <IPADRESS>...
Permission denied (publickey).
Couldn't read packet: Connection reset by peer

FTP is working fine. Files are also copied in windows server also.

Is there any set up needed for SFTP?

Thanks in Advance
Old 12-18-2009, 04:30 AM   #2
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Rep: Reputation: 49
The problem that you have seems to be on Windows. It's not appropriate to this forum. Perhaps you can post it on Non-*NIX Forums

Your problem seems to be the lack of your linux pub key on windows side. I assume you are running some ssh server on windows. If you are not then you can't connect. Also notice that sftp is not ftp.
0 members found this post helpful.
Old 12-18-2009, 04:35 PM   #3
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
It is a public key issue.
Old 12-18-2009, 04:52 PM   #4
Registered: Dec 2009
Posts: 37

Rep: Reputation: 17
The key authentication fails. There is a paramter in the configuration file controls what kinds of authentication methods will be attempted. You can choose to authenticate by keys only (in your case) or by password if key authentication fails. I don't remember which parameter it is. Read the manpage and change the parameter to allow password authentication and you would be able to sftp with password. If you don't have the priviledge to change the configuration file, you can use the option in the command line.
Old 12-18-2009, 10:04 PM   #5
LQ Newbie
Registered: Oct 2009
Posts: 21

Original Poster
Rep: Reputation: 0
But so far i know in linux server sftp is there by default...

But in windows server I have to setup it(install winscp) and then can generate RSA keygen for that windows server..Right??

Thanks in advance
Old 12-18-2009, 10:21 PM   #6
LQ Newbie
Registered: Apr 2009
Location: Indore, India
Distribution: ubuntu, centOS,RHEL,Mandriva
Posts: 10

Rep: Reputation: 0
SFTP is totally different from FTP. it is an extension of SSH.
You can login like this only if you have installed ssh server on windows.
you can also try Cygwin.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Facing problem in Sendmail 3.13 dhanju Linux - Server 1 03-27-2008 09:10 AM
Facing problem regarding sound utkarshrawat Linux - Hardware 9 10-18-2007 02:54 AM
Please Help :: I am facing problem in rpmbuild as given here... amarjitsingh Fedora 1 06-10-2007 07:06 AM
facing problem on FC5 adnansanni Linux - Newbie 3 05-12-2006 12:03 PM
facing problem with cronjobs manojthakkar Linux - General 7 12-09-2003 11:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration