SSH from local to intermediate host to final
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am using a jump server to connect to a final host with this command:
ssh -t intermediate ssh final
but I want it to work with a normal ssh or scp command, so I have tried to setup the config in .ssh/config:
Host final
ProxyCommand ssh -o 'ForwardAgent yes' intermediate 'ssh-add && nc %h %p'
this works, but there is one big dilemma. Intermediate's security policy requires me to password protect .ssh/id_rsa
. When I add a password to it I can no longer use the command, as it does not ask me for a password, but rather assume it is empty.
- I have to authenticate to intermediate using a password (key not possible)
- intermediate has to authenticate to final using the keyfile
ssh ssh-tunneling
add a comment |Â
up vote
0
down vote
favorite
I am using a jump server to connect to a final host with this command:
ssh -t intermediate ssh final
but I want it to work with a normal ssh or scp command, so I have tried to setup the config in .ssh/config:
Host final
ProxyCommand ssh -o 'ForwardAgent yes' intermediate 'ssh-add && nc %h %p'
this works, but there is one big dilemma. Intermediate's security policy requires me to password protect .ssh/id_rsa
. When I add a password to it I can no longer use the command, as it does not ask me for a password, but rather assume it is empty.
- I have to authenticate to intermediate using a password (key not possible)
- intermediate has to authenticate to final using the keyfile
ssh ssh-tunneling
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using a jump server to connect to a final host with this command:
ssh -t intermediate ssh final
but I want it to work with a normal ssh or scp command, so I have tried to setup the config in .ssh/config:
Host final
ProxyCommand ssh -o 'ForwardAgent yes' intermediate 'ssh-add && nc %h %p'
this works, but there is one big dilemma. Intermediate's security policy requires me to password protect .ssh/id_rsa
. When I add a password to it I can no longer use the command, as it does not ask me for a password, but rather assume it is empty.
- I have to authenticate to intermediate using a password (key not possible)
- intermediate has to authenticate to final using the keyfile
ssh ssh-tunneling
I am using a jump server to connect to a final host with this command:
ssh -t intermediate ssh final
but I want it to work with a normal ssh or scp command, so I have tried to setup the config in .ssh/config:
Host final
ProxyCommand ssh -o 'ForwardAgent yes' intermediate 'ssh-add && nc %h %p'
this works, but there is one big dilemma. Intermediate's security policy requires me to password protect .ssh/id_rsa
. When I add a password to it I can no longer use the command, as it does not ask me for a password, but rather assume it is empty.
- I have to authenticate to intermediate using a password (key not possible)
- intermediate has to authenticate to final using the keyfile
ssh ssh-tunneling
ssh ssh-tunneling
asked 1 min ago
Vegard
1112
1112
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%2f479061%2fssh-from-local-to-intermediate-host-to-final%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