Topic "Errors when remote shell is restricted"

Author Message
Greg

Guest


Hi,
when user's shell on remote machine is restricted (rbash or something)
winscp can't list contents of any directory, because with
rbash command `cd' is not allowed. But you still can do
`ls directory/subdirectory'
Winscp can copy to remote directory, but from remote to local can't.
Command line tools like scp or pscp.exe had no problem with
restricted shell.

Greg
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Greg wrote:
Hi,
when user's shell on remote machine is restricted (rbash or something)
winscp can't list contents of any directory, because with
rbash command `cd' is not allowed. But you still can do
`ls directory/subdirectory'
Winscp can copy to remote directory, but from remote to local can't.

Why is the cd disallowed? I do not see the point.
I know that there are some other restricted shell with which WinSCP works fine. Search the forum for references.

Quote:
Command line tools like scp or pscp.exe had no problem with restricted shell.

Sure, because they are much simpler in their functionality. They can just copy, nothing else.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License