LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-18-2009, 05:07 AM   #1
soumyacs
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, 05:30 AM   #2
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Rep: Reputation: 49
Hi.
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, 05:35 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,697

Rep: Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265
It is a public key issue.
 
Old 12-18-2009, 05:52 PM   #4
cpplinux
Member
 
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, 11:04 PM   #5
soumyacs
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, 11:21 PM   #6
kapilsingh
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.
 
  


Reply


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 10:10 AM
Facing problem regarding sound utkarshrawat Linux - Hardware 9 10-18-2007 03:54 AM
Please Help :: I am facing problem in rpmbuild as given here... amarjitsingh Fedora 1 06-10-2007 08:06 AM
facing problem on FC5 adnansanni Linux - Newbie 3 05-12-2006 01:03 PM
facing problem with cronjobs manojthakkar Linux - General 7 12-10-2003 12:55 AM


All times are GMT -5. The time now is 10:58 PM.

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