Opening many tunnels typing the password only once (all accounts in gateways have the same pass)
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I want to open many tunnels at once, they all have the same long password.
With -f
, i.e.,
ssh -fN -p 22 usr1@gate1 -L 10001:ip1:22
ssh -fN -p 22 usr2@gate2 -L 10002:ip2:22
...
ssh -fN -p 22 usrn@gaten -L 1000n:ipn:22
I can open the tunnels in background, which allows me to run them all together and then just type consecutively the password as many times as the number of tunnels I am opening (n
).
Given that what I type is the same, I would like to find a way to type it just once, but still do it in a secure way.
ssh ssh-tunneling openssh
add a comment |Â
up vote
1
down vote
favorite
I want to open many tunnels at once, they all have the same long password.
With -f
, i.e.,
ssh -fN -p 22 usr1@gate1 -L 10001:ip1:22
ssh -fN -p 22 usr2@gate2 -L 10002:ip2:22
...
ssh -fN -p 22 usrn@gaten -L 1000n:ipn:22
I can open the tunnels in background, which allows me to run them all together and then just type consecutively the password as many times as the number of tunnels I am opening (n
).
Given that what I type is the same, I would like to find a way to type it just once, but still do it in a secure way.
ssh ssh-tunneling openssh
4
use password less ogin with key, then have a look atssh-agent
. or usesshpass
â Archemar
Jun 25 at 11:17
Set up public/private key based login.
â ctrl-alt-delor
Jun 25 at 13:06
@Archemar I want to put the password explicitly, but only once. You are instead suggesting to install the keys and login without password right?
â myradio
Jun 29 at 12:55
sshpass will help you, but password will appear in ps -ef result. password can be set to keys but you must allow for login without password. That why I reply as comment, I see no way you can do that, but maybe someone will be more clever than me.
â Archemar
Jun 29 at 14:07
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to open many tunnels at once, they all have the same long password.
With -f
, i.e.,
ssh -fN -p 22 usr1@gate1 -L 10001:ip1:22
ssh -fN -p 22 usr2@gate2 -L 10002:ip2:22
...
ssh -fN -p 22 usrn@gaten -L 1000n:ipn:22
I can open the tunnels in background, which allows me to run them all together and then just type consecutively the password as many times as the number of tunnels I am opening (n
).
Given that what I type is the same, I would like to find a way to type it just once, but still do it in a secure way.
ssh ssh-tunneling openssh
I want to open many tunnels at once, they all have the same long password.
With -f
, i.e.,
ssh -fN -p 22 usr1@gate1 -L 10001:ip1:22
ssh -fN -p 22 usr2@gate2 -L 10002:ip2:22
...
ssh -fN -p 22 usrn@gaten -L 1000n:ipn:22
I can open the tunnels in background, which allows me to run them all together and then just type consecutively the password as many times as the number of tunnels I am opening (n
).
Given that what I type is the same, I would like to find a way to type it just once, but still do it in a secure way.
ssh ssh-tunneling openssh
asked Jun 25 at 10:43
myradio
1885
1885
4
use password less ogin with key, then have a look atssh-agent
. or usesshpass
â Archemar
Jun 25 at 11:17
Set up public/private key based login.
â ctrl-alt-delor
Jun 25 at 13:06
@Archemar I want to put the password explicitly, but only once. You are instead suggesting to install the keys and login without password right?
â myradio
Jun 29 at 12:55
sshpass will help you, but password will appear in ps -ef result. password can be set to keys but you must allow for login without password. That why I reply as comment, I see no way you can do that, but maybe someone will be more clever than me.
â Archemar
Jun 29 at 14:07
add a comment |Â
4
use password less ogin with key, then have a look atssh-agent
. or usesshpass
â Archemar
Jun 25 at 11:17
Set up public/private key based login.
â ctrl-alt-delor
Jun 25 at 13:06
@Archemar I want to put the password explicitly, but only once. You are instead suggesting to install the keys and login without password right?
â myradio
Jun 29 at 12:55
sshpass will help you, but password will appear in ps -ef result. password can be set to keys but you must allow for login without password. That why I reply as comment, I see no way you can do that, but maybe someone will be more clever than me.
â Archemar
Jun 29 at 14:07
4
4
use password less ogin with key, then have a look at
ssh-agent
. or use sshpass
â Archemar
Jun 25 at 11:17
use password less ogin with key, then have a look at
ssh-agent
. or use sshpass
â Archemar
Jun 25 at 11:17
Set up public/private key based login.
â ctrl-alt-delor
Jun 25 at 13:06
Set up public/private key based login.
â ctrl-alt-delor
Jun 25 at 13:06
@Archemar I want to put the password explicitly, but only once. You are instead suggesting to install the keys and login without password right?
â myradio
Jun 29 at 12:55
@Archemar I want to put the password explicitly, but only once. You are instead suggesting to install the keys and login without password right?
â myradio
Jun 29 at 12:55
sshpass will help you, but password will appear in ps -ef result. password can be set to keys but you must allow for login without password. That why I reply as comment, I see no way you can do that, but maybe someone will be more clever than me.
â Archemar
Jun 29 at 14:07
sshpass will help you, but password will appear in ps -ef result. password can be set to keys but you must allow for login without password. That why I reply as comment, I see no way you can do that, but maybe someone will be more clever than me.
â Archemar
Jun 29 at 14:07
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%2f451732%2fopening-many-tunnels-typing-the-password-only-once-all-accounts-in-gateways-hav%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
4
use password less ogin with key, then have a look at
ssh-agent
. or usesshpass
â Archemar
Jun 25 at 11:17
Set up public/private key based login.
â ctrl-alt-delor
Jun 25 at 13:06
@Archemar I want to put the password explicitly, but only once. You are instead suggesting to install the keys and login without password right?
â myradio
Jun 29 at 12:55
sshpass will help you, but password will appear in ps -ef result. password can be set to keys but you must allow for login without password. That why I reply as comment, I see no way you can do that, but maybe someone will be more clever than me.
â Archemar
Jun 29 at 14:07