You are not logged in.

#1 2011-12-28 11:28:51

sentenza
Member
Registered: 2011-12-28
Posts: 12

[Solved] ssh works not with colon(":")

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! smile

Last edited by sentenza (2011-12-29 12:43:12)

Offline

#2 2011-12-28 12:48:10

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: [Solved] ssh works not with colon(":")

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

#3 2011-12-28 13:31:03

hesse
Member
Registered: 2011-12-08
Posts: 88

Re: [Solved] ssh works not with colon(":")

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

#4 2011-12-28 13:45:21

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] ssh works not with colon(":")

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

#5 2011-12-29 11:38:25

sentenza
Member
Registered: 2011-12-28
Posts: 12

Re: [Solved] ssh works not with colon(":")

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

#6 2011-12-29 11:57:12

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: [Solved] ssh works not with colon(":")

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

Board footer

Powered by FluxBB