winSCP Connection Problem after Target Server runs script command

Advertisement

Myo Min Thein
Joined:
Posts:
2

winSCP Connection Problem after Target Server runs script command

Hello guys,

I am new to winSCP.
I would like to ask you about winSCP's limitations and side effects.

WinSCP Version: 5.9.3
Protocol: SFTP

I inserted "script command" in target server to track user operations.
Here is the "script command"
.bash_profile
{
......
script -f /tmp/`date +%Y%m%d_%H%M%S`_$USER.log
[EOF]
}

That command runs first whenever user's terminal starts opening.

After I inserted the command in target server, I connected target server via winSCP.
Even winSCP can be opened, I can't open winSCP's Terminal.
Please refer the following picture for error and root@10.1.9.207_env.log.

(<invalid hyperlink removed by admin>)

I found on winSCP's official site that
winSCP does not support commands that require terminal emulation or user input.

My understanding is
When winSCP's terminal opens, script command runs in that terminal automatically.
After script commands runs, error occurred as shown in picture(1).


I executed "script command" while the command haven't inserted in target server as environment variable.
I got error message as following picture and root@10.1.9.207_terminal.log.

(<invalid hyperlink removed by admin>)


May I know the followings!
How does "script command" concerns with winSCP's limitation?
What's the effect of "script command" on winSCP?

Thanks
Myo Min Thein

Last edited by Myo Min Thein on 2016-12-15 11:37; edited 1 time in total
Description: winSCP Log (Run script command from target server's environment variables)
Description: winSCP Log (Run script command from winSCP's terminal)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,266
Location:
Prague, Czechia

Re: winSCP Connection Problem after Target Server runs script command

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.


Last edited by martin on 2016-12-15; edited 1 time in total

Reply with quote

Myo Min Thein
Joined:
Posts:
2

Re: winSCP Connection Problem after Target Server runs script command

Sorry for my incomplete question.
I've uploaded winSCP logs.
I posted same question on "https://superuser.com" to notify more developers.

Sorry for your inconvenience.

Thanks
Myo Min Thein

Reply with quote

Advertisement

You can post new topics in this forum