Beruflich Dokumente
Kultur Dokumente
2003
Cd C:\ArchivosdePrograma\OpenSSH\bin
# default value.
Port 22
#Protocol 2,1
Protocol 2
ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_key
HostKey /etc/ssh_host_rsa_key
HostKey /etc/ssh_host_dsa_key
KeyRegenerationInterval 1h
ServerKeyBits 768
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile /etc/authorized_keys
RhostsRSAAuthentication no
HostbasedAuthentication no
IgnoreUserKnownHosts yes
#IgnoreRhosts yes
PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCreds yes
#UsePAM yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
UsePrivilegeSeparation no
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
MaxStartups 10:30:60
Banner /etc/banner.txt
ssh-keygen –t rsa
Esto nos solicitara una contraseña para nuestra llave, y nos mostrara donde
las almacenara
Llave Publica: /home/Administrador/.ssh/id_rsa.pub
edit authorized_keys
#ssh-keygen –t rsa
#scp id_rsa.pub
Administrador@IPServidorSSH/home/Administrador/cliente.pub
• Nos solicitara la contraseña del usuario a quien le estamos enviando
la clave, en este caso el Administrador de Windows, que como lo
hemos agregado a la base de datos del SSH, con “mkpasswd”, no nos
deberia presentar ningun problema.
C:\DocumentsAndSettings\Administrador\>dir
• Ahora, el contenido del archivo lo enviaremos a
OpenSSH\etc\authorized_keys
#ssh Administrador@IPServidor