Denni backup

Kvasnička Václav Ing. - Pontex s.r.o. vq na pontex.cz
Úterý Duben 15 14:53:47 CEST 2003


>
> ssh -v root na linux.domena.cz - skuste tam dat plne domenove meno (ak
> mate), alebo rovno ip adresu
>
Zkusil jsem to tovnou pres IP adresu, spojeni ssh se navazalo:
********
linux2:/px2 #  ssh -v root na 192.168.112.200
OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
14703: debug1: Reading configuration data /etc/ssh/ssh_config
14703: debug1: Applying options for *
14703: debug1: Rhosts Authentication disabled, originating port will not be
trusted.
14703: debug1: ssh_connect: needpriv 0
14703: debug1: Connecting to 192.168.112.200 [192.168.112.200] port 22.
14703: debug1: Connection established.
14703: debug1: identity file /root/.ssh/identity type -1
14703: debug1: identity file /root/.ssh/id_rsa type -1
14703: debug1: identity file /root/.ssh/id_dsa type -1
14703: debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.0.2p1
14703: debug1: match: OpenSSH_3.0.2p1 pat
OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1*
14703: Enabling compatibility mode for protocol 2.0
14703: debug1: Local version string SSH-2.0-OpenSSH_3.4p1
14703: debug1:  Miscellaneous failure (see text)
14703: debug1: open(/tmp/krb5cc_0): No such file or directory
14703: debug1: SSH2_MSG_KEXINIT sent
14703: debug1: SSH2_MSG_KEXINIT received
14703: debug1: kex: server->client aes128-cbc hmac-md5 none
14703: debug1: kex: client->server aes128-cbc hmac-md5 none
14703: debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
14703: debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
14703: debug1: dh_gen_key: priv key bits set: 140/256
14703: debug1: bits set: 1586/3191
14703: debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
14703: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host '192.168.112.200 (192.168.112.200)' can't be
established.
RSA key fingerprint is c5:c6:83:96:84:5f:b9:f9:5a:9d:89:22:cf:eb:e1:6a.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
14703: Warning: Permanently added '192.168.112.200' (RSA) to the list of
known hosts.
14703: debug1: bits set: 1564/3191
14703: debug1: ssh_rsa_verify: signature correct
14703: debug1: kex_derive_keys
14703: debug1: newkeys: mode 1
14703: debug1: SSH2_MSG_NEWKEYS sent
14703: debug1: waiting for SSH2_MSG_NEWKEYS
14703: debug1: newkeys: mode 0
14703: debug1: SSH2_MSG_NEWKEYS received
14703: debug1: done: ssh_kex2.
14703: debug1: send SSH2_MSG_SERVICE_REQUEST
14703: debug1: service_accept: ssh-userauth
14703: debug1: got SSH2_MSG_SERVICE_ACCEPT
14703: debug1: authentications that can continue: publickey,password
14703: debug1: next auth method to try is publickey
14703: debug1: try privkey: /root/.ssh/identity
14703: debug1: try privkey: /root/.ssh/id_rsa
14703: debug1: try privkey: /root/.ssh/id_dsa
14703: debug1: next auth method to try is password
root na 192.168.112.200's password:
14703: debug1: ssh-userauth2 successful: method password
14703: debug1: channel 0: new [client-session]
14703: debug1: send channel open 0
14703: debug1: Entering interactive session.
14703: debug1: ssh_session2_setup: id 0
14703: debug1: channel request 0: pty-req
14703: debug1: channel request 0: shell
14703: debug1: fd 3 setting TCP_NODELAY
14703: debug1: channel 0: open confirm rwindow 0 rmax 16384
Last login: Tue Apr 15 12:16:01 2003 from 192.168.112.68
Have a lot of fun...
**************
Takze predpokladam, ze ssh jde...

Po ukonceni ssh (exit) jsem zkusil:
linux2:/px2 # rsync -av  --progress 192.168.112.200:/px/users/VQ /px2
192.168.112.200: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

a taky:
linux2:/px2 # rsync -av  --progress root na 192.168.112.200:/px/users/VQ /px2
192.168.112.200: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

Kdyz se pokusim znovu o pripojeni ssh, vzdy musim zadat heslo. Takze by pro
spojeni ssh pro rsync bylo treba zadat taky - ale jak?

Diky VQ


---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.471 / Virová báze: 269 - datum vydání: 10.4.2003



Další informace o konferenci Linux