Automatically ssh into remote host depending on the folder you're in
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Is there a solution (or plugin for zsh) that will allow me to remote ssh depending on the folder in local OS? Similar to PyENV.
So if I develop a project and do
cd /home/projects/ERP
ssh production
ssh development
so that with easy to remember commands I jump right into desired remote host?
I understand I can do aliases and load them from a local folder when I switch dirs, but is there a better way?
Thanks,
Dmitry
linux ssh
add a comment |Â
up vote
0
down vote
favorite
Is there a solution (or plugin for zsh) that will allow me to remote ssh depending on the folder in local OS? Similar to PyENV.
So if I develop a project and do
cd /home/projects/ERP
ssh production
ssh development
so that with easy to remember commands I jump right into desired remote host?
I understand I can do aliases and load them from a local folder when I switch dirs, but is there a better way?
Thanks,
Dmitry
linux ssh
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Is there a solution (or plugin for zsh) that will allow me to remote ssh depending on the folder in local OS? Similar to PyENV.
So if I develop a project and do
cd /home/projects/ERP
ssh production
ssh development
so that with easy to remember commands I jump right into desired remote host?
I understand I can do aliases and load them from a local folder when I switch dirs, but is there a better way?
Thanks,
Dmitry
linux ssh
Is there a solution (or plugin for zsh) that will allow me to remote ssh depending on the folder in local OS? Similar to PyENV.
So if I develop a project and do
cd /home/projects/ERP
ssh production
ssh development
so that with easy to remember commands I jump right into desired remote host?
I understand I can do aliases and load them from a local folder when I switch dirs, but is there a better way?
Thanks,
Dmitry
linux ssh
linux ssh
asked 1 min ago
DmitrySemenov
23419
23419
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%2f480499%2fautomatically-ssh-into-remote-host-depending-on-the-folder-youre-in%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