shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ssh - senha como parametro


From: Sergio
Subject: ssh - senha como parametro
Date: Tue, 14 Jun 2005 17:09:10 -0000
User-agent: eGroups-EW/0.82

        Obrigado pelas dicas,

        Utilizei o ssh-keygen para me gerar uma chave publica, mas 
continua pedindo a senha.

        Dessa forma, rodei o ssh com debug level e verifiquei que 
o `publickey' esta desabilitado.

        Alguem podem me dar uma dica de como habilitar? Qual o 
commando? Ja enfrentaram este problema antes?

        As respostas serao bem-vindas.

        Desculpe pelos transtornos.

        Att,

Kameo.

        Segue o log do erro:

removi o user e os ips reais por $user $ip, respectivamente 

dev1!$user:~/.ssh2 [131]> ssh -i id_dsa_1024_a -d 4 $user@$ip "ls -l"
debug: connecting to $ip...
debug: ssh_client_wrap: creating transport protocol
debug: 
SshAuthMethodClient/sshauthmethodc.c:84/ssh_client_authentication_ini
tialize: Added method "publickey" to candidates.
debug: 
SshAuthMethodClient/sshauthmethodc.c:84/ssh_client_authentication_ini
tialize: Added method "password" to candidates.
debug: 
SshAuthMethodClient/sshauthmethodc.c:105/ssh_client_authentication_in
itialize: Added "publickey" to usable methods.
debug: 
SshAuthMethodClient/sshauthmethodc.c:105/ssh_client_authentication_in
itialize: Added "password" to usable methods.
debug: Ssh2Client/sshclient.c:1104/ssh_client_wrap: creating 
userauth protocol
debug: Ssh2AuthClient/sshauthc.c:1135/ssh_auth_client_wrap: 2 
supported methods: 'publickey,password'
debug: Ssh2Common/sshcommon.c:487/ssh_common_wrap: local ip = $ip, 
local port = 62704
debug: Ssh2Common/sshcommon.c:489/ssh_common_wrap: remote ip = $ip, 
remote port = 22
debug: Ssh2Common/sshcommon.c:375/ssh_common_finalize: remote 
hostname is "$ip".
debug: SshConnection/sshconn.c:1853/ssh_conn_wrap: Wrapping...
debug: entering event loop
debug: SshEventLoop/sshunixeloop.c:586/ssh_event_loop_run: Starting 
the event loop.
debug: Ssh2Transport/trcommon.c:593/ssh_tr_input_version: Remote 
version: SSH-2.0-2.3.0 SSH Secure Shell (non-commercial)
debug: Ssh2Transport/trcommon.c:1068/ssh_tr_negotiate: c_to_s: 
cipher 3des-cbc, mac hmac-sha1, compression none
debug: Ssh2Transport/trcommon.c:1071/ssh_tr_negotiate: s_to_c: 
cipher 3des-cbc, mac hmac-sha1, compression none
debug: Ssh2Client/sshclient.c:399/keycheck_key_match: Host key found 
from database.
debug: Ssh2Transport/trcommon.c:2416/ssh_tr_send_service_request: 
Sending service request for "ssh-userauth".
debug: Ssh2Transport/trcommon.c:1990/ssh_tr_input_service_accept: 
Receiving packet...
debug: Ssh2Transport/trcommon.c:1996/ssh_tr_input_service_accept: No 
packet yet.
debug: Ssh2Transport/trcommon.c:1990/ssh_tr_input_service_accept: 
Receiving packet...
debug: Ssh2Transport/trcommon.c:2020/ssh_tr_input_service_accept: 
Received SSH_MSG_SERVICE_ACCEPT with service name "ssh-userauth".
debug: Ssh2Common/sshcommon.c:297/ssh_common_special: Received 
SSH_CROSS_STARTUP packet from connection protocol.
debug: Ssh2Common/sshcommon.c:347/ssh_common_special: Received 
SSH_CROSS_ALGORITHMS packet from connection protocol.
debug: Ssh2AuthPubKeyClient/authc-
pubkey.c:830/ssh_client_auth_pubkey_agent_open_complete: 
ssh_client_auth_pubkey_agent_open_complete agent=0x0
debug: Ssh2AuthPubKeyClient/authc-
pubkey.c:751/ssh_client_auth_pubkey_agent_list_complete: 
ssh_client_auth_pubkey_agent_list_complete err 0 num 0
debug: Ssh2AuthClient/sshauthc.c:309/ssh_authc_completion_proc: 
Method 'publickey' disabled.
debug: Ssh2AuthPasswdClient/authc-
passwd.c:82/ssh_client_auth_passwd: Starting password query...
$user's password:






reply via email to

[Prev in Thread] Current Thread [Next in Thread]