|
|||||||||||
|
Re: Cygwin and SSH
From: Philip Le Riche <pleriche(at)altair.steria.co.uk>
Date: Mon Dec 09 2002 - 11:44:53 EST
# $OpenBSD: sshd_config,v 1.56 2002/06/20 23:37:12 markus Exp $
# This is the sshd server system-wide configuration file. See
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
# The strategy used for options in the default sshd_config shipped with
#Port 22
PidFile /var/openssh/sshd.pid # HostKey for protocol version 1
# Lifetime and size of ephemeral version 1 server key
# Logging
# Authentication:
#LoginGraceTime 600
#RSAAuthentication yes
# rhosts authentication should not be used
# To disable tunneled clear text passwords, change to no here!
# Change to no to disable s/key passwords
# Kerberos options
#AFSTokenPassing no
# Kerberos TGT Passing only works with the AFS kaserver
# Set this to 'yes' to enable PAM keyboard-interactive authentication
#X11Forwarding no
#MaxStartups 10
# override default of no subsystems
Then create some keys, e.g. ssh-keygen -t rsa1 -f /etc/openssh/ssh_host_key -N "" ssh-keygen -t dsa -f /etc/openssh/ssh_host_dsa_key -N "" ssh-keygen -t rsa -f /etc/openssh/ssh_host_rsa_key -N "" The following couple of lines I pinched from an rc.openssh on an AIX machine: read a b c d </etc/openssh/ssh_host_key.pub echo $hostname $a $b $c >>/etc/openssh/ssh_known_hosts On your client, create a user key, e.g. ssh-keygen -t rsa -f $HOME/.ssh/id_rsa -N "" Copy the public key $HOME/.ssh/id_rsa.pub to the cygwin server and append to .ssh/authorized_keys Start sshd with: /usr/sbin/sshd -f /etc/openssh/sshd_config Go back to your client machine and try: ssh -l <user> <ip addr or hostname of server> where <user> is what comes before the @ before each bash command prompt. Have I forgotten anything? You get the general idea. The first time you get a remote bash prompt from a win9x box is magic! Who wants a DOS prompt?
samuelf_stefanini@ctbctelecom.net.br scrawls: > > Hello, > > How to configure CYGWIN to execute conections via SSH? > > Someone know > > Tanks > > Samuel > > > > > -- ============================================================================== Philip Le Riche Voice: +44 1442 884390 (Ouaithe qu'i' sait L'Riche, chu Fax: +44 1442 884943 pouôrre baloque né pâle pon l'Jèrriais) Email: pleriche@altair.steria.co.uk ==============================================================================Received on Wed Dec 11 18:44:50 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:51 EDT |
||||||||||
|
|||||||||||