Startup script for application-level port forwarding on ubuntu

Clash Royale CLAN TAG#URR8PPP
up vote
-2
down vote
favorite
I am trying to run this command upon startup of a Ubuntu VM.
#!/bin/sh
ssh -f -N -D 0.0.0.0:8888 localhost
yes
It works fine when running the command manually, but when I use the command in a startup script, it seems to not take effect, maybe because its pending a password prompt?
How can I get around this? I would like to not hard code the password obviously. Thanks.
linux scripting startup
add a comment |Â
up vote
-2
down vote
favorite
I am trying to run this command upon startup of a Ubuntu VM.
#!/bin/sh
ssh -f -N -D 0.0.0.0:8888 localhost
yes
It works fine when running the command manually, but when I use the command in a startup script, it seems to not take effect, maybe because its pending a password prompt?
How can I get around this? I would like to not hard code the password obviously. Thanks.
linux scripting startup
add a comment |Â
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I am trying to run this command upon startup of a Ubuntu VM.
#!/bin/sh
ssh -f -N -D 0.0.0.0:8888 localhost
yes
It works fine when running the command manually, but when I use the command in a startup script, it seems to not take effect, maybe because its pending a password prompt?
How can I get around this? I would like to not hard code the password obviously. Thanks.
linux scripting startup
I am trying to run this command upon startup of a Ubuntu VM.
#!/bin/sh
ssh -f -N -D 0.0.0.0:8888 localhost
yes
It works fine when running the command manually, but when I use the command in a startup script, it seems to not take effect, maybe because its pending a password prompt?
How can I get around this? I would like to not hard code the password obviously. Thanks.
linux scripting startup
asked Jul 12 at 15:29
Colby
1
1
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f454931%2fstartup-script-for-application-level-port-forwarding-on-ubuntu%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password