Unix/Linux Go Back    


Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

Public/Private Key SSH from UNIX to Windows (Cygwin)

Windows & DOS: Issues & Discussions


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 12-01-2008   -   Original Discussion by kclerks11
buffoonix buffoonix is offline
Registered User
 
Join Date: Mar 2006
Last Activity: 26 January 2009, 11:26 AM EST
Posts: 145
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by kclerks11 View Post
I did uncomment out the following in sshd_config:

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
These are the defaults anyway for those attributes (see man sshd_config)
Quote:
I tried your suggestion but no luck

$ chown 0 var/empty
chown: changing ownership of `var/empty': Invalid argument


Currently /var is owned by me and /var/empty is owned by by SYSTEM and has the permissions "drwxr-xr-x"
This sounds strange, as to my knowledge /var on a Unix-like system should either be owned by root or bin.
Also why were you using a relative path when you issued the chown command,
and what directory were you in when you did it?
The $ in your prompt implies to me that you were issuing the chown as a non-root user which without sudo or similar also looks strange to me.
But I guess this all refers to the sshd server running in Cygwin where ownerships and admin rights may differ strangely.
Sorry, I have no Cygwin sshd setup experience to tell if this is all normal.
Sponsored Links
    #9  
Old Unix and Linux 12-01-2008   -   Original Discussion by kclerks11
kclerks11 kclerks11 is offline
Registered User
 
Join Date: Aug 2008
Last Activity: 8 December 2008, 8:02 AM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
There actually is no "root" in Cygwin. Since SSHD is run as a service on Local System, everything must be owned by "SYSTEM". I am an Administrator on this machine so everything that root can do on an actual Unix system, I should be able to do in Cygwin.
Sponsored Links
    #10  
Old Unix and Linux 12-02-2008   -   Original Discussion by kclerks11
kclerks11 kclerks11 is offline
Registered User
 
Join Date: Aug 2008
Last Activity: 8 December 2008, 8:02 AM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
After a few attempts to yank my hair out I finally got the SSH server working in Cygwin. Basically the key was removing the service from the registry using cygrunsrv –R sshd. Then I just ran ssh-host-config again and made sure the “sshd_server” user is configured correctly and running the service. I guess in Windows 2K3 the it can’t be run as Local System. From there it’s business as usual. I do thank you for all your help. If you happen to come across anyone else having the similar issues setting one up this should help.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP - Private and Public keys Arpit Narula Shell Programming and Scripting 1 03-26-2012 01:05 AM
how to ssh to remote unix machines using private/public key wydadi Shell Programming and Scripting 6 10-19-2010 10:10 PM
SSL Public key/Private question tical00 UNIX for Dummies Questions & Answers 3 06-04-2009 01:52 AM
ssh public/private Keys richo king UNIX for Dummies Questions & Answers 2 03-13-2008 07:34 PM
SSH public and private keys new2ss UNIX for Advanced & Expert Users 2 02-13-2006 11:06 PM



All times are GMT -4. The time now is 05:09 PM.