![]() If I run the command as root ( sudo) the (empty) password for the rsa file is asked. through teamviewer) I can run the command and no password is asked. I have created the id_rsa.pub file and sent it to the remote-server but still it does not seem to work. However the problem I have is that both commands are asked for a password. I tried to use cron by adding the command both my user's crontab and in /etc/cron. So the command I am using is ssh -N -f -R 0.0.0.0:1234:localhost:22 -i /home/username/.ssh/id_rsa.pub main problem is that I want to execute this command whenever the computer starts so that the computer is accessible after a reboot. ![]() As far as I understand this can be achieved by using a reverse ssh tunnel. I am have a remote machine behind a firewall that I wish to connect to through SSH.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |