1

I'm trying to create a socks proxy on my Raspberry Pi. For that I have this command: ssh -f -N -C -D 0.0.0.0:1080 localhost.

Now I want to run that on startup. And here is the problem. When I put the line into the /etc/rc.local file, the proxy starts, but I can't connect to it. I guess it isn't working, because I have to enter the user password, when I run the code by myself. I want to login into it with php and without a key. I prefer user + password or just without user.

Is there a simple way to run that line of code on startup with all user rights that it needs?

  • maybe this article will help - i.e. ssh public key authentication – Jaromanda X Apr 29 '18 at 0:49
  • I read a lot of times about that. But I want to login into it with php and without a key. I prefer user + password or just without user. Don’t worry, I’m working with iptables – Mr.Tr33 Apr 29 '18 at 10:12
  • that's OK, I'm not worried at all – Jaromanda X Apr 29 '18 at 11:21
  • You can configure ssh to use a public key or a password. Using the key will make it easier to automate, then you can use the password when you log in manually. I'm not sure if it will work for a user with no password or not, but you can try. – goldilocks Apr 29 '18 at 17:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.