Topic "WinScp hangs logging into server with read in /etc/profile"

Author Message
[View user's profile]

Joined: 2010-08-17
Posts: 1
Location: Austin
WinSCP 4.2.8 (build 818) on XP Pro, using scp to a UNIX machine.

In the GUI, I log on to a central machine with centrally-controlled /etc/profile (in other words, I can't change etc/profile for anything!). I have ssh keys set up and in place.

It just hangs. I found out that logins to other machines work, because the server that's giving me problems has a read shell command in /etc/profile, and they don't. So scp is waiting for the login to complete, and /etc/profile is waiting for a newline. Classic deadly embrace!

Since it hangs, there is no error message.

Is there any way to get WinSCP to goose the server with a newline, to get past that doggone read in /etc/profile????
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
You may be able to alias the read command to noop before starting shell. See Shell option on Login dialog.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License