You are not logged in.
Hello,
i was trying to setup sparkleshare with my server and recognized that i cannot login via ssh when giving a path to a folder like e.g. this: ssh 192.168.0.1:/home/sentenza
It works when i don't give a path adress (ssh 192.168.0.1)...
What could that be?
Thanks! ![]()
Last edited by sentenza (2011-12-29 12:43:12)
Offline
Did that ever work? I've never heard of ssh'ing into a specific directory, and couldn't find anything in the man page.
Are you possibly mixing up ssh and the ability of scp to copy to a specific directory?
Google'ing "ssh into directory" yields:
ssh -t 192.168.0.1 'cd /home/sentenza; bash'Offline
As jac said, scp syntax uses the colon at the end of the address to give the path to a file/directory but ssh doesn't like them colons.
Offline
You can specify the command to be executed after the SSH stanza.
Like this:
ssh -t amalthea tmux attach -t irssi-t is used here to fix pseudo-terminal issues, it might or might not apply to your situation. The username is implied since it's the same on the server as on the client.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Thank you, you're right i was wrong. I used ths syntax because it was in the sparkleshare error message, but like this "ssh://...:/.../...".
Greetings,
sentenza
Offline
Unless you have further questions about this topic, please mark it "[Solved]" by prepending it to the thread title. You can do that by editing the first post.
Offline