The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sftp connection from Unix to windows Renjesh Shell Programming and Scripting 7 09-09-2009 07:22 AM
SFTP to windows mohanpadamata UNIX for Dummies Questions & Answers 2 08-18-2009 08:25 AM
How to connect SFTP(Linux) from Windows DOS mohantmk Windows & DOS: Issues & Discussions 15 04-06-2009 04:02 PM
sftp from unix to windows using keys thrashers Shell Programming and Scripting 1 02-27-2009 06:25 PM
SFTP from windows E:/ to unix server pranavagarwal Shell Programming and Scripting 12 11-28-2007 10:58 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-08-2009
grajp002 grajp002 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 12
SFTP from Solaris to Windows

Hello Guys,
I was looking for a method for passwordless SFTP from Solaris to Windows server.

I googled a lot, but could not find anything which would suit my purpose. All I found on google was the error messages that people got, but not how to do it.

Please help. I am in urgent need of it.
  #2 (permalink)  
Old 10-09-2009
tristezo2k tristezo2k is offline
Registered User
  
 

Join Date: Mar 2009
Location: Buenos Aires, Argentina
Posts: 6
If you want the sshd server on windows you will need cygwin and a lot of cafeined berberages. sorry, you are going against the M$ bad karma.
If what you want is to have a sftp client at windows, and sshd at Unix, you are asking for shared key autentication scheme.
It can be done with winscp + any sshd.
1- Use putty gen to generate pub - priv keys on the windows Give the private key to winscp.
2- copy the pub key to the $HOME/.ssh/authorized_keys on the server for the user you are trying to passwordless login.
3- Voilá!

Just check the shared key ssh autentication on the openssh site.
It is easy.
PD: there are many pitfalls, and chmod 777 is not your friend here, since sshd tries to make sure nobody is doing nasty things.

Last edited by tristezo2k; 10-09-2009 at 02:36 AM.. Reason: more details
  #4 (permalink)  
Old 10-09-2009
grajp002 grajp002 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 12
Thank you for your feedback guys...

The following is what I got to achieve and this is what I did.

Task: sftp from a Solaris box to a Windows box with passwordless authentication.

What I have done.
On the Solaris box, I created a key using

ssh-keygen -t dsa -f newkey

Then I changed it to ssh2 version using

ssh-keygen -e -f newkey

This created a newkey and newkey.pub in my home directory.

I copied over the newkey.pub to ~/.ssh2/authorization file on my Windows box.
But, when I try to sftp, I get the following error message.

permission denied gssapi-keyex gssapi-with-mic publickey keyboard-interactive

So, where did I go wrong and what am I supposed to do?
  #5 (permalink)  
Old 10-10-2009
incredible incredible is offline Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,101
Hope you're not trying sftp using a root a/c
  #6 (permalink)  
Old 10-10-2009
grajp002 grajp002 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 12
Nope!!! I am not doing it as a root. I am using my username.

However, my username and password on my UNIX box is different from the username and password on Windows boxes.

Could that be the problem?
  #7 (permalink)  
Old 10-10-2009
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,771
What sftp service are you running on the windows box? What version of windows are you talking about??
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0