Pular para o conteúdo principal

SSH Passwordless

Como configurar SSH para acesso sem senha (útil para instalações remotas automatizadas).

*** Siga exatamente estes passos que irá funcionar sem problemas ***

Acesse o servidor 1 e execute os passos abaixo.

(Crie o Diretório e altere suas permissões)
mkdir ~/.ssh
chmod 700 ~/.ssh

(Acesse o diretório e crie as chaves)
cd ~/.ssh
ssh-keygen -t rsa (Pressione Enter para responder todas as perguntas)

(Copie a chave pública para o servidor remoto)
scp ~/.ssh/id_rsa.pub @:/id_rsa_remote.pub

(Acesse o servidor remoto para criar a autorização)

ssh @ (digite a senha)
cat id_rsa_remote.pub >> .ssh/authorized_keys
chmod 644 .ssh/authorized_keys

Pronto, faça o teste. No seu servidor 1 digite o comando:

ssh -X

Comentários

Postagens mais visitadas deste blog

Netbackup Status Code

Veritas Status Codes and Messages Retirado de http://www.mwalters.com/CLIC/Configs/Veritas_Status_Codes.htm Status Codes Status Code: 0 Message: the requested operation was successfully completed Explanation: There were no problems detected with the requested operation. Recommended Action: None, unless this was a database backup performed through a database extension product (for example, NetBackup for Oracle or NetBackup for SQL Server). In those instances, code 0 means the backup script that started the backup ran without error. However, you must check other status as explained in the related NetBackup manual to see if the database was successfully backed up. Status Code: 1 Message: the requested operation was partially successful Explanation: A problem that may require corrective action was detected during the requested operation. Recommended Action: Check the All Log Entries report and also the progress log (if there is one). Some of the problems that can show up under Status Code ...