Example :
su - usera
ssh-keygen
[EMAIL PROTECTED]:~/.ssh$ cat ~/.ssh/id_rsa.pub
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAw7KhpWfG/RRZhaAZlUVK9iH07LnzeO1dgs1vmOX1vK1EZ+p/Pru6UZqSl0sOaBNOIffjG1F4IeRTVw+7CRdnPPcil4htRwFCjMQi11uJcCqfTjaHS5gcvqOOtUPoBlY6WM+35BRzPNdAhnwSWpxVmEfgtDI4Hi18XVU3V9IHTK645oNgHix4GMAQc8IlESmf2HWifAmJogT4qozKZwpA8lyCeOKTMAvTa3GyeqMWx5weuvuI5thMa+bTlIByUGPjqJvWISEiKXXaZt6ioFdXxXMgFC+Or5zzWG5yBouXJQCbKDwyuhsFuEOVu83ykHU+YIytA0/FXcBZjg6tiGgnVQ==
[EMAIL PROTECTED]
on hostb:
su - userb
vi ~/.ssh.authorized_keys
add the key:
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAw7KhpWfG/RRZhaAZlUVK9iH07LnzeO1dgs1vmOX1vK1EZ+p/Pru6UZqSl0sOaBNOIffjG1F4IeRTVw+7CRdnPPcil4htRwFCjMQi11uJcCqfTjaHS5gcvqOOtUPoBlY6WM+35BRzPNdAhnwSWpxVmEfgtDI4Hi18XVU3V9IHTK645oNgHix4GMAQc8IlESmf2HWifAmJogT4qozKZwpA8lyCeOKTMAvTa3GyeqMWx5weuvuI5thMa+bTlIByUGPjqJvWISEiKXXaZt6ioFdXxXMgFC+Or5zzWG5yBouXJQCbKDwyuhsFuEOVu83ykHU+YIytA0/FXcBZjg6tiGgnVQ==
[EMAIL PROTECTED]
From HostB
ssh HOSTA
Raj Kiran Grandhi a écrit :
abdelkader belahcene wrote:
Hi every one,
I am using DSL on small miniPC.
I tried the ssh-keygen it seemed running correctly, it generates the
key (pub and priv),
Use ssh-copy-id to copy your public key to the ssh server. This
requires that password based connections are allowed to that server.
but the ssh-add gave cannot open a connection to
authentifcation agent ???? , I tried it after ssh-agent I got same
error.
In fact I want an automatic ( from scrpit without passwd ) connection
to myserver using ssh. I don't know if ssh has an option to disable
the passwd or to send it thru the command ???
thanks a lot
best regards
bela
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]