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

martin

Thanks. So you are not using SFTP at all.
With SCP, cannot you bypass the application by explicitly requesting a shell (/bin/bash or whatever) here?:
https://winscp.net/eng/docs/ui_login_scp
sadam

Something went wrong with the attachments.Sorry. It was first time for me.
martin

Thanks for the details. Though, there's no log file attached.
Guest

However, I decided to write an answer. Since there's a question about the log. I wanted to avoid any doubts.

My router is a firewall. Leaf Bering-uClibc (https://bering-uclibc.zetam.org/wiki/Main_Page and https://sourceforge.net/projects/leaf/files/Bering-uClibc/)
It has two network cards. For masquerading. I don't want to publish IP addresses from my local network.
So xxx.yyy.zzz.fw is the IP of its network card connected to the local network. And xxx.yyy.zzz.loc1 is the IP number of the computer from which I ran WinSCP.
There were still parts of the log file I didn't understand. Maybe encrypted. Maybe not. Now I entered xxxxxxxxxxxxxxxxxxxxxxxx there. Just in case.
When the firewall starts a communication session, it first asks for a login and password.
Then it launches an application that allows you to change the configuration. You must select something or cancel (q - exit) the changes.
This is the standard solution for this firewall. The same is true when starting a session from a Windows computer using PuTTY.
A login, password, and application waiting for selection. The screenshot taken by this application is in the attached PuTTY.png.
WinSCP also starts a session. He logs in and waits for the application to finish. And the application waits for his selection.
Screenshots of WinSCP are attached: WinSCPstart.jpg, WinSCPstarted.jpg, and WinSCPended.jpg. This last one is how WinSCP lost its patience.
And the WinSCP log is in the attached root@xxx.yyy.zzz.fw.log. And it would be nice if WinSCP chose "q" as, for example, the second (?) password.
martin

But WinSCP needs an SFTP server to start, not exit from some application to shell. When the application is enabled, it seems that it overrides WinSCP's request for SFTP server.
Well, if your router supports SFTP at all. As you still didn't post the log, I cannot actually know.
sadam

Sorry, I don't know anything about SFTP. But I could change the configuration of this router and block this application from starting at startup. And now WinSCP connects to this router. And I can copy files. It would be nice if WinSCP, after connecting to a router, could simulate sending something from the keyboard to that router. I think it can be done. PuTTY sends it. Changing the router's configuration to block this application from starting at startup isn't easy for a newbie.
martin

Ok, so it seems that the router does not support SFTP at all.
sadam

Big thanks Martin. It helped me. Leaf Bering uClibc automatically launches the application after startup, waiting for you to select one of its menu items. PuTTY shows that menu on screen and you can choose one of the points or exit it (choosing q - quit). WinSCP waits for this application to finish. This can be seen in the log. After a while, WinSCP, unable to wait, displays an error message.
DragonZX

Most routers users SCP protocol for connection, try this type. However, sometimes routers don't have even this feature. In this case, you have to use just PuTTY for connection.
sadam

On the Leaf Bering forum I got this advice:
If you have ssh access to your LEAF box you can use winscp to copy the
files directly to your windoze box.

It was 2 days ago. But I read it yesterday. I read a bit about the SSH protocol. I saw the advice to use PuTTY. I installed it. Then I installed WinSCP. I haven't used such programs before. I don't know what the log files are called and where to look for them.
martin

Re: WinSCP can't connect to my router

Can you connect with any other SFTP client?
If you can, please post its and WinSCP's log files.
sadam

WinSCP can't connect to my router

The router is Leaf Bering uClibc. I can connect to it using PuTTY. Without problems. And using WinSCP I can't. I don't know what to check. Login in that session is authenticated and after that
I see "Optimize connection buffer size". Where to do it? And how? Calling PuTTY from WinSCP works too. Without any problems.