I'm trying to make it so server1 can automaticly log in to server2 via ssh.
on server1 I issued this command:
ssh-keygen -t rsa
This created two key files, one being a .pub.
I copy and pasted the contents of the .pub on server2 in the user's ~/.ssh/authorized_keys file and chmodded it 600.
Now on server1 I issue this command:
ssh -p 22 -I keyfile filesync@extsrv.loc
But it prompts for the password, and I also get the error "no support for smartcards".
On server2 there is no error, just says an incoming connection. Any idea what could cause this?
edit: Now it stopped giving me that error but it still wont work. There's no logs either so it's like if it's not even trying to use the key. In fact if I type in the wrong key file I don't get a file not found error so I'm wondering if it's ignoring the -i argument.
on server1 I issued this command:
ssh-keygen -t rsa
This created two key files, one being a .pub.
I copy and pasted the contents of the .pub on server2 in the user's ~/.ssh/authorized_keys file and chmodded it 600.
Now on server1 I issue this command:
ssh -p 22 -I keyfile filesync@extsrv.loc
But it prompts for the password, and I also get the error "no support for smartcards".
On server2 there is no error, just says an incoming connection. Any idea what could cause this?
edit: Now it stopped giving me that error but it still wont work. There's no logs either so it's like if it's not even trying to use the key. In fact if I type in the wrong key file I don't get a file not found error so I'm wondering if it's ignoring the -i argument.