Differences

This shows you the differences between the selected revisions of the page.

2005-01-07 2005-01-12
typo (martin) link ui_login_scp (martin)
Line 13: Line 13:
===== SCP requirements ===== ===== SCP requirements =====
-To transfer files, ''scp1'' is used (it is called from within ''scp''). If only ''scp2'' is allowed on your server, check the //Use scp2 with scp1 compatibility// option on the [[ui_login_scp|SCP tab]] in the login dialog.+To transfer files, ''scp1'' is used (it is called from within ''scp''). If only ''scp2'' is allowed on your server, check the //[[ui_login_scp#other_options|Use scp2 with scp1 compatibility]]// option on the [[ui_login_scp|SCP tab]] in the Login dialog.
-For correct functionality, it is necessary to satisfy a few conditions. The ''bash'' shell is recommended for working with WinSCP. If your default shell doesn't work with WinSCP, you can specify another shell on the [[ui_login_scp|SCP tab]] in the Login dialog. Typing the full path (e.g. ''/bin/bash'') is recommended. +For correct functionality, it is necessary to satisfy a few conditions. The ''bash'' shell is recommended for working with WinSCP. If your default shell doesn't work with WinSCP, you can make WinSCP use [[ui_login_scp#shell|other shell]].
- +
-&screenshot(shell)+
For its operation, WinSCP needs several commands: ''alias'', ''cd'', ''chgrp'', ''chmod'', ''chown'', ''echo'', ''groups'', ''ls'', ''mkdir'', ''mv'', ''pwd'', ''scp'', ''rm'', ''ln'', ''unalias'' and ''unset''. These commands have to be placed in the path and user must have sufficient permissions to execute them. WinSCP expects "standard" behaviour of these commands. You can avoid needing these commands by not using some of WinSCP functions (''mkdir'', ''chown'', ''ln'', etc.) or by changing some configuration options (''alias'', ''groups'', ''unalias'' and ''unset''). For its operation, WinSCP needs several commands: ''alias'', ''cd'', ''chgrp'', ''chmod'', ''chown'', ''echo'', ''groups'', ''ls'', ''mkdir'', ''mv'', ''pwd'', ''scp'', ''rm'', ''ln'', ''unalias'' and ''unset''. These commands have to be placed in the path and user must have sufficient permissions to execute them. WinSCP expects "standard" behaviour of these commands. You can avoid needing these commands by not using some of WinSCP functions (''mkdir'', ''chown'', ''ln'', etc.) or by changing some configuration options (''alias'', ''groups'', ''unalias'' and ''unset'').
-Just after estabilishing the connection with server, all aliases on the above commands are cleared. This is done to avoid unexpected behaviour (e.g. alias ''rm'' to ''rm -i''). If there are no aliases influencing command behaviour, this feature can be disabled on the [[ui_login_scp|SCP tab]] tab in the Login dialog. This setting speeds up the login process.+Just after estabilishing the connection with server, all [[ui_login_scp#other_options|aliases on the above commands are cleared]]. This is done to avoid unexpected behaviour.
-Another precondition is that the output of all commands is in English. This mostly concerns names of months in directory listings (''ls -la''). Because of this, WinSCP clears all user variables that govern command output after login. These variables are: ''LANG'', ''LANGUAGE'', ''LC_CTYPE'', ''LC_COLLATE'', ''LC_MONETARY'', ''LC_NUMERIC'', ''LC_TIME'', ''LC_MESSAGES'' and ''LC_ALL''. If no such variable is set, it is possible to turn off this feature in the session settings. If command output also reflects some other server settings, it may be necessary to change this before WinSCP can be used.+Another precondition is that the output of all commands is in English. This mostly concerns names of months in directory listings (''ls -la''). Because of this, WinSCP [[ui_login_scp#other_options|clears all user variables that govern command output]] after login. If command output also reflects some other server settings, it may be necessary to change this before WinSCP can be used.
-The last necessary condition is the proper output of ''ls -la'' command, which is supposed to include file group name! If the group name is absent, it can be temporarily added using the relevant option on the [[ui_login_scp|SCP tab]] in the Login dialog. The option causes the execution of the command ''alias ls="ls -g"'' on startup. WinSCP will attempt detect support for ''--full-time'' switch of the ''ls'' command. If the detection causes you problems, disable it on [[ui_login_scp|SCP tab]] in the Login dialog.+The last necessary condition is the proper output of ''ls -la'' command, which is supposed to include file group name! If the group name is absent, it can be temporarily added using the //[[ui_login_scp#directory_listing|Alias LS to display group name]]// option on the //SCP tab// in the Login dialog. WinSCP will attempt detect support for ''%%--full-time%%'' switch of the ''ls'' command. If the detection causes you problems, you can [[ui_login_scp#directory_listing|disable]] it.
===== Using WinSCP with Restricted Shell Environments ===== ===== Using WinSCP with Restricted Shell Environments =====

Last modified: by martin