ssh config depending on interactive mode
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I've some rules in .ssh/config file which I would like activate only in interactive mode (ie. terminal background change). Is that possible?
bash ssh configuration
add a comment |Â
up vote
2
down vote
favorite
I've some rules in .ssh/config file which I would like activate only in interactive mode (ie. terminal background change). Is that possible?
bash ssh configuration
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I've some rules in .ssh/config file which I would like activate only in interactive mode (ie. terminal background change). Is that possible?
bash ssh configuration
I've some rules in .ssh/config file which I would like activate only in interactive mode (ie. terminal background change). Is that possible?
bash ssh configuration
bash ssh configuration
asked 2 hours ago
ts01
1501211
1501211
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
You can alias ssh
if using a non-interactive shell as follows in your ~/.bashrc
file:
if [ -z "$PS1" ]; then
alias ssh='ssh -F ~/.ssh/config-non-interactive'
fi
... then copy the non-interactive configuration you'd like to use to ~/.ssh/config-non-interactive
and you should be set.
New contributor
When this is combined withInclude
I think it will be a flexible way of utilising config files. superuser.com/a/1142813 . There were many times I gave up on certain config features because it wasnâÂÂt compatible across my workstations.
â sdkks
1 hour ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
You can alias ssh
if using a non-interactive shell as follows in your ~/.bashrc
file:
if [ -z "$PS1" ]; then
alias ssh='ssh -F ~/.ssh/config-non-interactive'
fi
... then copy the non-interactive configuration you'd like to use to ~/.ssh/config-non-interactive
and you should be set.
New contributor
When this is combined withInclude
I think it will be a flexible way of utilising config files. superuser.com/a/1142813 . There were many times I gave up on certain config features because it wasnâÂÂt compatible across my workstations.
â sdkks
1 hour ago
add a comment |Â
up vote
3
down vote
You can alias ssh
if using a non-interactive shell as follows in your ~/.bashrc
file:
if [ -z "$PS1" ]; then
alias ssh='ssh -F ~/.ssh/config-non-interactive'
fi
... then copy the non-interactive configuration you'd like to use to ~/.ssh/config-non-interactive
and you should be set.
New contributor
When this is combined withInclude
I think it will be a flexible way of utilising config files. superuser.com/a/1142813 . There were many times I gave up on certain config features because it wasnâÂÂt compatible across my workstations.
â sdkks
1 hour ago
add a comment |Â
up vote
3
down vote
up vote
3
down vote
You can alias ssh
if using a non-interactive shell as follows in your ~/.bashrc
file:
if [ -z "$PS1" ]; then
alias ssh='ssh -F ~/.ssh/config-non-interactive'
fi
... then copy the non-interactive configuration you'd like to use to ~/.ssh/config-non-interactive
and you should be set.
New contributor
You can alias ssh
if using a non-interactive shell as follows in your ~/.bashrc
file:
if [ -z "$PS1" ]; then
alias ssh='ssh -F ~/.ssh/config-non-interactive'
fi
... then copy the non-interactive configuration you'd like to use to ~/.ssh/config-non-interactive
and you should be set.
New contributor
New contributor
answered 1 hour ago
Gray
312
312
New contributor
New contributor
When this is combined withInclude
I think it will be a flexible way of utilising config files. superuser.com/a/1142813 . There were many times I gave up on certain config features because it wasnâÂÂt compatible across my workstations.
â sdkks
1 hour ago
add a comment |Â
When this is combined withInclude
I think it will be a flexible way of utilising config files. superuser.com/a/1142813 . There were many times I gave up on certain config features because it wasnâÂÂt compatible across my workstations.
â sdkks
1 hour ago
When this is combined with
Include
I think it will be a flexible way of utilising config files. superuser.com/a/1142813 . There were many times I gave up on certain config features because it wasnâÂÂt compatible across my workstations.â sdkks
1 hour ago
When this is combined with
Include
I think it will be a flexible way of utilising config files. superuser.com/a/1142813 . There were many times I gave up on certain config features because it wasnâÂÂt compatible across my workstations.â sdkks
1 hour ago
add a comment |Â
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%2faskubuntu.com%2fquestions%2f1076915%2fssh-config-depending-on-interactive-mode%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