I have a server server.name
. With a folder /home/user229472/folder
I can use ssh like this:
ssh user229472@server.name
cd folder
...
scp works as well:
scp user229472@server.name:folder/file.txt .
But I cannot ssh directly into folder
:
ssh user229472@server.name:folder
ssh: Could not resolve hostname server.name:folder: Name or service not known
I've tried lots of variations but none works:
ssh user229472@server.name:22
ssh user229472@server.name/
ssh user229472@server.name/home/
ssh user229472@server.name/home/user229472
ssh user229472@server.name:/home
ssh user229472@server.name:/home/
ssh user229472@server.name:/home/user229472/folder
ssh user229472@server.name:/folder
ssh user229472@server.name:folder
This should do it:
In your case:
Ssh gives you a login shell, after verifing your identity you will be logged in the remote system. After having done this you can use commands like cd. If you want to mount a remote folder locally, use sshfs:
sshfs user@remotehost:/path/to/remotefolder /path/to/localmountpoint
Now you can acces the remotefolder via localmountpoint