This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ssh/sshd


Hello Derek,
Do on the pc:
mkdir /derek/.ssh
ssh-keygen
tell it to put the file in /derek/.ssh/identity
give it a passphrase.
ftp (or somehow get) your new identity* files to the other 
host in your otherhost:~derek/.ssh/identity* 
copy the ~/.ssh/identity.pub file to ~/.ssh/authorized_keys
Note that each system that you want to ssh to will need a copy
of your identity.pub in it's authorized_keys. 
That is how it 'knows' who to let in.
Try that and let me know what happens. You should get further anyway.
Pat

On your pc (or on a host with ssh-keygen) you need to run ssh-keygen
On Mon, 5 Jan 1998, Derek Young wrote:

> Hello, I have just installed the ssh/sshd software made available from
> http://gnu-win32.paranoia.ru/ , but I have not been able to get it to
> work.  I changed my mounts to binary, set up the sshd config files, and
> started sshd.  I have Sergey's coolview DLL installed.  I would like to
> get this working so I can use it with CVS.
> 
> When I run ssh, I get the message "You have no controlling tty and no
> DISPLAY.  Cannot read passphrase."  Do I need some special environment
> variables set to run this?  I've also tried starting with the -t
> command, but this has the same effect.
> 
> 
> I am running ssh from a regular command prompt (not bash or tcsh).  Even
> if I run under bash I get the same error message.  I have run ssh-keygen
> to create my key in my .ssh directory.
> 
> I started sshd with the -d command to get debugging info.  After sshd
> starts up with this...
> 
> debug: sshd version 1.2.21 []
> debug: Initializing random number generator; seed file
> /etc/ssh_random_seed
> log: Server listening on port 22.
> log: Generating 768 bit RSA key.
> Generating p:  ..........++ (distance 168)
> Generating q:  ................++ (distance 184)
> Computing the keys...
> Testing the keys...
> Key generation complete.
> log: RSA key generation complete.
> 
> ... and I run ssh I get this output from sshd...
> 
> debug: Server will not fork when running in debugging mode.
> log: Connection from 24.128.36.106 port 3539
> debug: Client protocol version 1.5; client software version 1.2.21
> debug: Sent 768 bit public key and 1024 bit host key.
> debug: Encryption type: idea
> debug: Received session key; encryption turned on.
> debug: Attempting authentication for dyoung.
> log: Rsa authentication refused for dyoung: bad modes for /derek
> debug: RSA authentication for dyoung failed.
> fatal: Connection closed by remote host.
> debug: Calling cleanup 0x40e9e4(0x0)
> 
> 
> I don't know what "bad modes for /derek" means (/derek is my home
> directory).  Do I need some special permissions on this directory?  This
> directory is listed in my /etc/passwd file as well.  sshd and ssh were
> started as the same user, and I'm also trying to login with this user
> name.
> 
> Have I missed something?
> 
> thanks for any help,
> 
> -- Derek Young
> 
> 
> 
> 

Patrick Fay, Ph.D., Intel Corp.            email:   pfay@co.intel.com
Los Alamos National Lab                    wk:         (505) 665-9141
CTI M.S. B296                              fax:        (505) 667-5921
Los Alamos NM 87545    ASCI-RED http://www.acl.lanl.gov/~pfay/teraflop

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]