Y
Y
yeszhanov2017-02-11 00:34:21
linux
yeszhanov, 2017-02-11 00:34:21

How can I be connected remotely using ssh key, linux?

Hello. They gave me a test task on my computer. Now, to test it, they asked me to send an SSH key and username. Created 2 pairs of keys: id_rsa and id_rsa.pub. Added id_rsa.pub to authorized_keys on the server. To test everything, I created a virtual machine, copied id_rsa there. Connected to the server next. command ssh -i ~/.ssh/id_rsa [email protected] , everything works. But it's locally I connected on my computer. And how can they connect remotely via the Internet to me? Will they list my ip address too? we're not on the same network. This question confuses me.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Karabanov, 2017-02-11
@yeszhanov

Yes. Only they will prescribe a white address. Therefore forward the 22nd port outside.

U
udev, 2017-02-11
@udev

As a last resort,
*ngrok/localrunel
*tor hidden service can be used for ssh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question