Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

damon18

Re: Can't complete connection (no file list) after successful authentication.

martin wrote:

The shell session does not work, because you seem to be using some strange shell. WinSCP needs bash or similar.
See https://winscp.net/eng/docs/requirements#scp

This is a new web host I'm connecting to, so not sure what strange shell might be used. When connected using Putty I tried:

$ echo $0

*** forbidden path: /bin/dash

and then
$ echo $SHELL

*** forbidden path: /usr/bin/lshell


So don't have access to that.

I've been using WinSCP for many years on several hosts but haven't had this problem before, I've opened a ticket with the hosting company to see what they have to say.
martin

Re: Can't complete connection (no file list) after successful authentication.

damon18 wrote:

When using SFTP does WinSCP have all the same features? Like duplicating files and directories and running custom file commands etc.? That is the reason I was using SCP thought it could do things SSH could do but FTP couldn't.

Yes, but it opens a new shell session for those (like for SCP). And it won't work, if SCP does work.
The shell session does not work, because you seem to be using some strange shell. WinSCP needs bash or similar.
See https://winscp.net/eng/docs/requirements#scp
damon18

Re: Can't complete connection (no file list) after successful authentication.

Yes, just tried with SFTP and it worked! Thanks for the tip.

I've always used SFTP with Filezilla but not with WinSCP. When using SFTP does WinSCP have all the same features? Like duplicating files and directories and running custom file commands etc.? That is the reason I was using SCP thought it could do things SSH could do but FTP couldn't.
martin

Re: Can't complete connection (no file list) after successful authentication.

Because SCP protocol is obsolete. And it was never intended to be used in a GUI client.
There's a reason why WinSCP defaults to SFTP.
So did you try SFTP?
damon18

Re: Can't complete connection (no file list) after successful authentication.

martin wrote:

Why are you using SCP? Why don't you use SFTP?


LOL, I don't know, I've always used SCP with the WinSCP client.

Why not?
martin

Re: Can't complete connection (no file list) after successful authentication.

Why are you using SCP? Why don't you use SFTP?
damon18

Can't complete connection (no file list) after successful authentication.

Trying to connect to a new web host. I created and installed keys with Puttygen and added private key to Pageant. Was able to successfully login to server using Putty.

When I tried to connect with WinSCP I get a successful connection message "authenticated" but the connection never completes and displays server files.

I've attached a log file and screenshot of the connection attempt. Is there a setting I'm missing or is this a host server problem?