Differences
This shows you the differences between the selected revisions of the page.
2008-02-13 | 2008-02-14 | ||
??? to ... (martin) | unexpected_directory_listing (martin) | ||
Line 27: | Line 27: | ||
* Shell. Your account may not be allowed to start a shell at all. With some servers (like OpenSSH), you may need to be allowed to start a shell, even if using SFTP protocol. | * Shell. Your account may not be allowed to start a shell at all. With some servers (like OpenSSH), you may need to be allowed to start a shell, even if using SFTP protocol. | ||
* SFTP server. Your account may not be able to start SFTP server binary (e.g. ''/bin/sftp-server'') or the binary is not present on your server. Your SSH server may also lack the SFTP subsystem. | * SFTP server. Your account may not be able to start SFTP server binary (e.g. ''/bin/sftp-server'') or the binary is not present on your server. Your SSH server may also lack the SFTP subsystem. | ||
+ | |||
+ | ===== [[unexpected_directory_listing]] Unexpected directory listing line '...' ===== | ||
+ | You will get the error with [[protocols#scp|SCP protocol]], if output of ''ls'' command cannot be parsed by WinSCP. WinSCP expects listing in format: | ||
+ | <type><permissions> <inode> <owner> <group> <size> <timestamp> <filename>[ -> <target>] | ||
+ | |||
+ | Some examples: | ||
+ | |||
+ | drw-r--r-- 3 martinp users 4596 2007-06-06 11:18:33.000000000 +0200 private | ||
+ | |||
+ | lrwxrwxrwx 1 martinp users 4 Mar 24 2005 wiki -> dokuwiki | ||
+ | |||
+ | drwxr-xr-x+ 2 martinp users 96 Oct 26 14:58 httpdocs | ||
+ | |||
+ | If your listing does not correspond to some of the above: | ||
+ | * Try using [[protocols#sftp|SFTP protocol]] instead of SCP. | ||
+ | * Alter output of ''ls'' command to match any of the supported formatting. WinSCP has few session options that may be used for that, including: | ||
+ | * //[[ui_login_scp#directory_listing|Alias LS to display group name]]//; | ||
+ | * //[[ui_login_scp#other_options|Clear aliases]]// and | ||
+ | * //[[ui_login_scp#other_options|Clear national variables]]// | ||
+ | * If you are are experienced with unix shell, you can setup alias to ''ls'' command that would modify the output to match some of the supported formatting (e.g. using ''sed'' command). You will need to unset //[[ui_login_scp#other_options|Clear aliases]]// session option to disallow WinSCP from removing your alias. The next version of WinSCP will allow setting custom listing command to make this easier [[bug>142]]. | ||
===== [[large_packet]] Received too large (... B) SFTP packet. Max supported packet size is 102400 B ===== | ===== [[large_packet]] Received too large (... B) SFTP packet. Max supported packet size is 102400 B ===== |