Rodrigo wrote:
Pessoal,
estou com um problema e nao consigo resolver, que � tentar enviar arquivos automaticamente entre servidores.
h� tentei via ftp,sftp,scp, mas todos pedem a senha...eu precisava de alguma solu��o que pudesse enviar a senha tamb�m como parametro, e claro que seja seguro.
Algu�m tem alguma id�ia.
Rodrigo.
Saca s� essa explica��o do man ssh :
SSH protocol version 2
When a user connects using protocol version 2, similar authentication
methods are available. Using the default values for
PreferredAuthentications, the client will try to authenticate first using
the hostbased method; if this method fails, public key authentication is
attempted, and finally if this method fails, keyboard-interactive and
password authentication are tried.
The public key method is similar to RSA authentication described in the
previous section and allows the RSA or DSA algorithm to be used: The
client uses his private key, $HOME/.ssh/id_dsa or $HOME/.ssh/id_rsa, to
sign the session identifier and sends the result to the server. The
server checks whether the matching public key is listed in
$HOME/.ssh/authorized_keys and grants access if both the key is found and
the signature is correct. The session identifier is derived from a
shared Diffie-Hellman value and is only known to the client and the
server.
If public key authentication fails or is not available, a password can be
sent encrypted to the remote host to prove the user's identity.
Additionally, ssh supports hostbased or challenge response authentica�
tion.Voc� faz a autentica��o via chave p�blica. Eu fa�o isso aqui no trabalho pra bkps remotos.
D� uma lida que n�o tem erro.
--
GUS-BR - Grupo de Usuarios Slackware - BR
http://www.slackwarebrasil.org/
http://www.linuxmag.com.br/mailman/listinfo/slack-users

