On Sat, Jun 29, 2013 at 10:20 PM, Jonathan Pittman
<
jonathan.m...@gmail.com> wrote:
}
>
> Although, to answer your question, I do not see a way to set the directory
> for a connection. I would imagine that each session is meant to be unique
> in that regard. Or maybe more so, the sshd running on the remote host would
> have to support such a feature for a whole connection.
Hi Jonathan,
Thanks for your long answer.
I want to implement a kind of ssh client and i think sshd (from
openssh) should already support this feature because we can 'cd' using
ssh client shipped with Linux/BSD/Mac. Or maybe this ssh client do
some trick to support this?
And thanks for your multiple commands idea, i think it can become a
workaround for this.
>
>
>
> On Sat, Jun 29, 2013 at 4:42 AM, Iwan Budi Kusnanto <
iwa...@gmail.com>
> wrote:
>>
>> Hi
>> How to change working directory of ssh.ClientConn?
>> I have tried sesssion.Run("cd somedir") but it not worked.
>>
>> From my understanding, we send each command by create new session then
>> call Start or Run.
>> If we change directory by calling session.Run or session.Start it will
>> only affect that session, not ClientConn.
>> And it is useless because a session can only send one command.
>>
>> Any suggestion?
>>
>> --
>> Iwan Budi Kusnanto
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to
golang-nuts...@googlegroups.com.
>> For more options, visit
https://groups.google.com/groups/opt_out.
>>
>>
>
--
Iwan Budi Kusnanto