connecting with rsa key
Hello, I would like to connect an internal computer, on my personal network, to an external one on the web through public rsa key. I use my own old config page http://www.dodin.org/wiki/pmwiki.php?n=Doc.GenerateSsh-PassphraseAutenticati... all this works, mostly, but the public key is copied to the external server with name "root@localhost", witch, of course, do not cope well :-(. any clue? is it necessary to make the internal computer visible fgrom the net, how? thanks jdd -- http://dodin.org
jdd@dodin.org wrote:
Hello,
I would like to connect an internal computer, on my personal network, to an external one on the web through public rsa key.
Funny, I have only just today set up the same thing, on a new server.
all this works, mostly, but the public key is copied to the external server with name "root@localhost", witch, of course, do not cope well :-(.
That should not matter. The name is purely a reference. My own ed25519 key says 'per@linux' :-) -- Per Jessen, Zürich (16.2°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland.
Le 26/03/2021 à 17:12, Per Jessen a écrit :
jdd@dodin.org wrote:
Hello,
I would like to connect an internal computer, on my personal network, to an external one on the web through public rsa key.
Funny, I have only just today set up the same thing, on a new server.
all this works, mostly, but the public key is copied to the external server with name "root@localhost", witch, of course, do not cope well :-(.
That should not matter. The name is purely a reference. My own ed25519 key says 'per@linux' :-)
curious. I couldn't connect without giving a passwd (no passphrase), when the very same config works between my usual computer and the internal server tomorrow I may have better fitted ideas :-) thanks jdd -- http://dodin.org
Hi jdd, when this happens to me, the reason often is just a mismatching key. Try to specify the key which you want to use to connect with. e.g.: ssh -i ~/.ssh/youkey root@host Also check the permissions on the directory, config and keys. If they are to "wide" ssh tends to deny the connection. Cheers, Bernd Am 26.03.21 um 18:32 schrieb jdd@dodin.org:
Le 26/03/2021 à 17:12, Per Jessen a écrit :
jdd@dodin.org wrote:
Hello,
I would like to connect an internal computer, on my personal network, to an external one on the web through public rsa key.
Funny, I have only just today set up the same thing, on a new server.
all this works, mostly, but the public key is copied to the external server with name "root@localhost", witch, of course, do not cope well :-(.
That should not matter. The name is purely a reference. My own ed25519 key says 'per@linux' :-)
curious. I couldn't connect without giving a passwd (no passphrase), when the very same config works between my usual computer and the internal server
tomorrow I may have better fitted ideas :-)
thanks jdd
Le 26/03/2021 à 18:32, jdd@dodin.org a écrit :
tomorrow I may have better fitted ideas :-)
of course... I mixed dsa/rsa keys. With right key sent, all is ok... should not do such thing when tired :-( sorry for disturbing :-) thanks jdd -- http://dodin.org
On 3/26/21 10:12 AM, jdd@dodin.org wrote:
all this works, mostly, but the public key is copied to the external server with name "root@localhost", witch, of course, do not cope well :-(.
the username in the key isn't part of the authentication. (I think you can actually delete it) I'm not sure of it's true purpose other than providing some name for differentiating what is in ~/.ssh/authorized_keys. -- David C. Rankin, J.D.,P.E.
participants (4)
-
Bernd Ritter
-
David C. Rankin
-
jdd@dodin.org
-
Per Jessen