I'm trying to make it ease for me by creating alias for ssh connection to my server. So I created alias in the
~/.bashrc
as follows:
alias aliasname='ssh login@ip -p 59184'
But I want to make several diffent aliases for my subfolders on the server. I tried to to something like
alias aliasname='ssh login@ip:/path/to/subfolder -p 59184'
alias aliasname='ssh login@ip/path/to/subfolder -p 59184'
alias aliasname='ssh login@ip::/path/to/subfolder -p 59184'
but always get error like Name or service not known, so clearly I do it wrong. Can someone help me here?
P.S. I should mention that regular alias to the server root works fine.
ssh login@ip:/path/to/subfolder
supposed to do? When you login throughssh
, you always "land" in the home directory. Accordingly, tellingssh
a destination directory is not meaningful, and thus it does not understand it.