Всем привет, я вот пытаюсь выполнить команду, но не получается(((
imatveev@ubuntu:~/Perfas_src_check$ ssh -v 192.168.70.144 ssh -v 192.168.70.139 mkdir /home/imatveev/hello
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.70.144 [192.168.70.144] port 22.
debug1: Connection established.
debug1: identity file /home/imatveev/.ssh/id_rsa type -1
debug1: identity file /home/imatveev/.ssh/id_rsa-cert type -1
debug1: identity file /home/imatveev/.ssh/id_dsa type -1
debug1: identity file /home/imatveev/.ssh/id_dsa-cert type -1
debug1: identity file /home/imatveev/.ssh/id_ecdsa type -1
debug1: identity file /home/imatveev/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 4d:1c:96:80:65:1c:02:b5:93:7c:97:0d:5f:77:a8:b6
debug1: Host '192.168.70.144' is known and matches the ECDSA host key.
debug1: Found key in /home/imatveev/.ssh/known_hosts:7
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/imatveev/.ssh/id_rsa
debug1: Trying private key: /home/imatveev/.ssh/id_dsa
debug1: Trying private key: /home/imatveev/.ssh/id_ecdsa
debug1: Next authentication method: password
imatveev@192.168.70.144's password:
debug1: Authentication succeeded (password).
Authenticated to 192.168.70.144 ([192.168.70.144]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: ssh -v 192.168.70.139 mkdir /home/imatveev/hello
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.70.139 [192.168.70.139] port 22.
debug1: Connection established.
debug1: identity file /home/imatveev/.ssh/id_rsa type -1
debug1: identity file /home/imatveev/.ssh/id_rsa-cert type -1
debug1: identity file /home/imatveev/.ssh/id_dsa type -1
debug1: identity file /home/imatveev/.ssh/id_dsa-cert type -1
debug1: identity file /home/imatveev/.ssh/id_ecdsa type -1
debug1: identity file /home/imatveev/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 2b:79:71:b4:df:06:18:25:81:2a:a7:8f:a8:10:47:42
debug1: Host '192.168.70.139' is known and matches the ECDSA host key.
debug1: Found key in /home/imatveev/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/imatveev/.ssh/id_rsa
debug1: Trying private key: /home/imatveev/.ssh/id_dsa
debug1: Trying private key: /home/imatveev/.ssh/id_ecdsa
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: Authentications that can continue: publickey,password
debug1: No more authentication methods to try.
Permission denied (publickey,password).
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 1864, received 5408 bytes, in 0.2 seconds
Bytes per second: sent 7925.0, received 22992.6
debug1: Exit status 255
Как я понимаю это из-за второго ssh ((( Можно ли как-нибудь обойти данную проблему, т.к. мне надо будет запустить удаленно скрипт, который будет выполнять команды на разных машинах через ssh. И вообще реально ли это?