hey leute, ich poste einfach mal hier in diesem thread, weils ums selbe thema geht und ich hier im forum keinen weiteren finden kann. hoffe ihr seid mir nicht böse weil der thread schon sooo alt ist!
wie der thread schon sagt, kann ich mich mit winscp in verbindung mit nem key nicht einloggen :(. hab schon sämtliche man pages durchgelesen und google jetzt schon 2 tage im inet rum. meinen ssh server hab ich jetzt glaub ich in den letzten 2 tagen 100 mal neu gestartet lol. aber leider ohne erfolg!
mit nem normalen user+key kann ich mich an der console ohne probleme anmelden, nur mit root über winscp funzts leider nicht. der root key befindet sich in der datei /root/.ssh/authorized_keys. den key hab ich wie jene von den normalen usern mit puttygen erstellt (dsa 2048bits) - dateirechte sind auf .ssh 0700 und authorized_keys 0600 gesetzt.
system: SSH-2.0-OpenSSH_5.1p1 Debian-5
meine sshd_config sieht wie folgt aus:
Code: Select all
Port x
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 30
PermitRootLogin forced-commands-only
StrictModes yes
MaxAuthTries 3
RSAAuthentication no
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
#IgnoreUserKnownHosts yes
PermitEmptyPasswords no
ChallengeResponseAuthentication no
PasswordAuthentication no
# Kerberos options
KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
# GSSAPI options
GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
X11Forwarding no
X11DisplayOffset 10
PrintMotd yes
PrintLastLog yes
TCPKeepAlive yes
UseLogin no
UseDNS no
MaxStartups 3:30:10
Banner /etc/issue.net
AcceptEnv LANG LC_*
UsePAM no
GatewayPorts no
AllowTcpForwarding no
KeepAlive yes
Subsystem sftp /usr/lib/sftp-server
Match User root
ForceCommand /usr/lib/sftp-server
ob da jetzt bei subsystem bzw. forcecommand /usr/lib/openssh/sftp-server oder /usr/lib/sftp-server steht bleibt egal (klar, weil nur symlink), aber man hofft ja immer^^
das gibt winscp aus:
Code: Select all
. 2010-08-04 18:19:55.281 WinSCP Version 4.2.8 (Build 818) (OS 6.1.7600)
. 2010-08-04 18:19:55.281 Login time: Mittwoch, 04. August 2010 18:19:55
. 2010-08-04 18:19:55.281 --------------------------------------------------------------------------
. 2010-08-04 18:19:55.281 Session name: xx.xx.xx.xx
. 2010-08-04 18:19:55.281 Host name: xx.xx.xx.xx (Port: x)
. 2010-08-04 18:19:55.281 User name: root (Password: No, Key file: Yes)
. 2010-08-04 18:19:55.281 Tunnel: No
. 2010-08-04 18:19:55.281 Transfer Protocol: SFTP (SCP)
. 2010-08-04 18:19:55.281 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-08-04 18:19:55.281 Proxy: none
. 2010-08-04 18:19:55.281 SSH protocol version: 2; Compression: No
. 2010-08-04 18:19:55.281 Bypass authentication: No
. 2010-08-04 18:19:55.282 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-08-04 18:19:55.282 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-08-04 18:19:55.282 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-08-04 18:19:55.282 SFTP Bugs: -,-
. 2010-08-04 18:19:55.282 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-08-04 18:19:55.282 Shell: default
. 2010-08-04 18:19:55.282 EOL: 0, UTF: 2
. 2010-08-04 18:19:55.282 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-08-04 18:19:55.282 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-08-04 18:19:55.282 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-08-04 18:19:55.282 Cache directory changes: Yes, Permanent: Yes
. 2010-08-04 18:19:55.282 DST mode: 1
. 2010-08-04 18:19:55.282 --------------------------------------------------------------------------
. 2010-08-04 18:19:55.364 Looking up host "xx.xx.xx.xx"
. 2010-08-04 18:19:55.364 Connecting to xx.xx.xx.xx port x
. 2010-08-04 18:19:55.437 Server version: SSH-2.0-OpenSSH_5.1p1 Debian-5
. 2010-08-04 18:19:55.437 We believe remote version has SSH-2 ignore bug
. 2010-08-04 18:19:55.437 Using SSH protocol version 2
. 2010-08-04 18:19:55.437 We claim version: SSH-2.0-WinSCP_release_4.2.8
. 2010-08-04 18:19:55.470 Doing Diffie-Hellman group exchange
. 2010-08-04 18:19:55.574 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-08-04 18:19:55.738 Host key fingerprint is:
. 2010-08-04 18:19:55.738 ssh-rsa 2048 xx:xx:xx:xx..............................
. 2010-08-04 18:19:55.738 Initialised AES-256 SDCTR client->server encryption
. 2010-08-04 18:19:55.738 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-08-04 18:19:55.738 Initialised AES-256 SDCTR server->client encryption
. 2010-08-04 18:19:55.738 Initialised HMAC-SHA1 server->client MAC algorithm
. 2010-08-04 18:19:55.837 Reading private key file "H:\ssh keys\root\root-key.ppk"
! 2010-08-04 18:19:55.838 Using username "root".
. 2010-08-04 18:19:55.875 Offered public key
. 2010-08-04 18:19:55.977 Offer of public key accepted
! 2010-08-04 18:19:55.978 Authenticating with public key "root-key"
. 2010-08-04 18:19:55.983 Prompt (2, SSH key passphrase, , Passphrase for key "root-key": )
! 2010-08-04 18:19:58.712 Access denied
. 2010-08-04 18:19:58.714 Access denied
. 2010-08-04 18:19:58.714 Disconnected: No supported authentication methods available
* 2010-08-04 18:19:58.717 (ESshFatal) Disconnected: No supported authentication methods available
* 2010-08-04 18:19:58.717 Anmeldungsprotokoll (Siehe Sitzungsprotokoll für Details):
* 2010-08-04 18:19:58.717 Verwende Benutzername "root".
* 2010-08-04 18:19:58.717 Authentifiziere mit öffentlichem Schlüssel "root-key".
* 2010-08-04 18:19:58.717 Zugriff verweigert.
* 2010-08-04 18:19:58.717
* 2010-08-04 18:19:58.717 Anmeldung fehlgeschlagen.
kann man den ssh log auch direkt nach dem start bzw. restart von ssh in der console ausgeben? hab da irgendwann mal irgendwo was gelesen, aber google schweigt dazu leider :(...
ich hoffe wirklich das ihr mir weiterhelfen könnt, bitte!