On Thu 29 Nov 2012 11:40:14 AM CST, Amaury Viera Hernández wrote:
Hello everyone, I need to connect at one server for the first time and that it not ask to me the authorization to add the server host to the file .ssh/knownhosts: this is possible using the /etc/ssh_config file, but is for all users
HashKnownHosts no UserKnownHostsFile /dev/null GlobalKnownHostsFile /dev/null StrictHostKeyChecking no
I need to connect for the first time and that client do not ask me for authorice the server and add it to knownhosts Could spcify using this in a file in .ssh? How? I apologize for my language, Regards, Amaury.
Hi You need to run; ssh-keygen Then copy the contents of the ~/.ssh/id_rsa.pub into the remote servers ~/.ssh/authorized_keys file -- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop up 2 days 1:28, 4 users, load average: 0.43, 0.19, 0.16 CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 11/29/2012 11:52 AM, Malcolm wrote:
On Thu 29 Nov 2012 11:40:14 AM CST, Amaury Viera Hernández wrote:
Hello everyone, I need to connect at one server for the first time and that it not ask to me the authorization to add the server host to the file .ssh/knownhosts: this is possible using the /etc/ssh_config file, but is for all users
HashKnownHosts no UserKnownHostsFile /dev/null GlobalKnownHostsFile /dev/null StrictHostKeyChecking no
I need to connect for the first time and that client do not ask me for authorice the server and add it to knownhosts Could spcify using this in a file in .ssh? How? I apologize for my language, Regards, Amaury.
Hi You need to run;
ssh-keygen
Then copy the contents of the ~/.ssh/id_rsa.pub into the remote servers ~/.ssh/authorized_keys file
Well, thanks, the problem was solved creating the a configuration file called config in the $HOME/.ssh directory with the following content: HashKnownHosts no UserKnownHostsFile /dev/null GlobalKnownHostsFile /dev/null StrictHostKeyChecking no Regards, Amaury. 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION http://www.uci.cu http://www.facebook.com/universidad.uci http://www.flickr.com/photos/universidad_uci -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Amaury Viera Hernández
-
Malcolm