SecureShell Question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi all,

I'm in the process of setting up an automatic procedure to transfer
some data from computers to a central log server using SSH.

The log server uses SSH Server 3.1 from SecureShell and clients use
SSH Client (can't remember the version right now).

However, I noticed something strange...public key authentication works
fine but the problem is when I need to change directory...sometimes it
needs a slash at the beginning and some other times it seems not to
need one.
In other words, sometimes I need to enter the command "cd \myfolder",
other times only "cd myfolder", intermittently either commands does
not actually change to the  folder I request.

Has anybody noticed this behaviour before ?

Thank you in advance,

Re: SecureShell Question

barabba wrote on 11.08.2004 23:55:

Quoted text here. Click to load it

"cd \myfolder" is the same as "cd myfolder".
Crucial is where you are. If you have, say, a folder /myfolder (living
in root) and you're in your home, "cd myfolder" won't get you anywhere,
only "cd /myfolder". But if you're in root "cd myfolder" works.
For better orientation you could put the actual directory in your prompt.

Re: SecureShell Question

Quoted text here. Click to load it

... which has nothing to do with SSH, and everything to do with the
OS/shell you're running on the server, which you haven't said anything

  Richard Silverman

Re: SecureShell Question

Quoted text here. Click to load it

This has nothing to do with ssh.  What OS is the server, and what shell are
you running there?

Quoted text here. Click to load it

Ssh doesn't do anything with directories or typing commands.  It's just a
conduit for communicating with the host machine.  You'll likely get a better
response on a newsgroup about your log server's OS.

That said, my guess is you're confused about the slash.  In Unix, backslash is
an escape character, and forward slash is a directory separator.  "\myfolder"
is the same as "myfolder", because "\m" is not a special escape code.
"/myfolder", however, is different.

/myfolder would be the one on the filesystem root.  myfolder (with or without
a leading backslash) would be the one in the current directory.  
Mark Rafn    <

Site Timeline