RSH versus SSH2

Tomas TPS Ulej tps at ncc.nextra.sk
Thu Jan 13 04:38:13 CET 2000


Jan 13 04:26:50 gal sshd[9726]: Remote host disconnected: Authentication
method disabled. (user 'root', client address '195.168.1.3:1852', requested
service 'ssh-connection')
Jan 13 04:26:50 gal sshd[9726]: User authentication failed: 'Authentication
method disabled. (user 'root', client address '195.168.1.3:1852', requested
service 'ssh-connection')'
Jan 13 04:26:52 gal sshd[9439]: connection from "195.168.1.3"

Na serveri mam bezny ~root/.rhosts subor.

Po napisani rsh -l root gal pwd prebehne vsetko ok:

root@[box /root] # rsh -l root gal pwd
/root

Po precitani manualu k ssh2 som dospel k presvedceniu, ze:

ssh2 -l root gal pwd by malo spravit to iste, zial :( =>

root@[box /root] # ssh2 gal -v -l root pwd
debug: connecting to gal...
debug: entering event loop
debug: ssh_client_wrap: creating transport protocol
debug: ssh_client_wrap: creating userauth protocol
debug: Ssh2Transport/trcommon.c:592/ssh_tr_input_version: Remote version:
SSH-2.0-2.0.12 (non-commercial)
debug: Remote version: SSH-2.0-2.0.12 (non-commercial)
debug: Host key found from the database.
debug: Ssh2Common/sshcommon.c:155/ssh_common_special: special packet
received from connection protocol: 3
debug: Ssh2Common/sshcommon.c:155/ssh_common_special: special packet
received from connection protocol: 4
debug: Unable to open /root/.ssh2/identification
root's password:

^^^^^^^^^^^^^^^^ preco?

debug: Ssh2Common/sshcommon.c:155/ssh_common_special: special packet
received from connection protocol: 6
debug: Ssh2/ssh2.c:306/client_authenticated: client_authenticated
debug: Ssh2Common/sshcommon.c:466/ssh_common_new_channel: num_channels now 1
/root
debug:
Ssh2ChannelSession/sshchsession.c:1221/ssh_channel_session_request_exit_stat
us: received exit status : 0
debug: Ssh2Common/sshcommon.c:447/ssh_common_destroy_channel: num_channels
now 0
debug: session_close
debug: destroying client struct...
debug: uninitializing event loop

Fyi, na gal v ~root/.rhosts je:

arc.nextra.sk root
195.168.1.3 root

V com je problem? Tj. preco chce password napriek tomu, ze v rhosts je
uvedeny server aj user?

--
Tomas TPS Ulej
NEXTRA SK, Network Coordination Centre
more? http://www.ripe.net/cgi-bin/whois?tu36-ripe




More information about the Users-l mailing list