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

dmitry_ra

martin wrote:

I'm not aware of any difference.


I had the same problem, and I solved it. In my case difference was in place in sudoers file:

This not working:
# User privilege specification

root    ALL=(ALL:ALL) ALL
username ALL=NOPASSWD: /usr/lib/openssh/sftp-server

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:


But this, OK:
# User privilege specification

root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

username ALL=NOPASSWD: /usr/lib/openssh/sftp-server

# See sudoers(5) for more information on "#include" directives:


Regards,
Dmitry.
martin

patrick73 wrote:

This version is slower to start than previous (also portable version)...
After there is no difference later in use, but at launching, I must wait at least double of more time.
What it does more than previous version do ?

I'm not aware of any difference. Can you attach complete session og file showing log in for both versions?

And are the next versions integrate also support of Ubuntu Linux 12.04.2 ?

No idea what kind of support you mean. Can you explain please?
patrick73

martin wrote:


It does not look like you have sudo set in WinSCP session settings. Please check.


Effectivly so sorry :oops:

Have now tested with
sudo /usr/lib/openssh/sftp-server
and it work !!!

I have just a remark:
This version is slower to start than previous (also portable version)...
After there is no difference later in use, but at launching, I must wait at least double of more time.
What it does more than previous version do ?

And are the next versions integrate also support of Ubuntu Linux 12.04.2 ?

By the way, thanks a lot ;-)
martin

SFTP Server: default

It does not look like you have sudo set in WinSCP session settings. Please check.
patrick73

Well, i Have try with your development version of the WinSCP, but, unfortunaly, it doesnt help:
Same problem, no possible to create dir for example. :(

As you asked me, the log :
--------------------------------------------------------------------------

WinSCP Version 5.2.1 (Build 3202) (OS 6.1.7601 Service Pack 1)
Configuration: C:\Users\myusername\Documents\winscp\winscp20130422rsftp\WinSCP.ini
Local account: ACP2010\myusername
Working directory: C:\Users\myusername\Documents\winscp\winscp20130422rsftp
Process ID: 5892
Command-line: "C:\Users\myusername\Documents\winscp\winscp20130422rsftp\WinSCP.exe"
Time zone: Current: GMT+2, Standard: GMT+1, DST: GMT+2, DST Start: 31/03/2013, DST End: 27/10/2013
Login time: mardi 23 avril 2013 10:05:36
--------------------------------------------------------------------------
Session name: myusername@192.168.0.1 (Ad-Hoc site)
Host name: 192.168.0.1 (Port: 22)
User name: myusername (Password: No, Key file: No)
Tunnel: No
Transfer Protocol: SFTP (SCP)
Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
Proxy: none
SSH protocol version: 2; Compression: No
Bypass authentication: No
Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
SSH Bugs: A,A,A,A,A,A,A,A,A,A
Return code variable: Autodetect; Lookup user groups: A
Shell: default
EOL: 0, UTF: 2
Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
SFTP Bugs: A,A
SFTP Server: default
Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
DST mode: 1; Timezone offset: 0h 0m
--------------------------------------------------------------------------
Looking up host "192.168.0.1"
Connecting to 192.168.0.1 port 22
Selecting events 63 for socket 884
Waiting for the server to continue with the initialization
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 18 network events making 18 cumulative events for socket 884
Handling network write event on socket 884 with error 0
Handling network connect event on socket 884 with error 0
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Server version: SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
Using SSH protocol version 2
We claim version: SSH-2.0-WinSCP_release_5.2.1
Waiting for the server to continue with the initialization
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Doing Diffie-Hellman group exchange
Waiting for the server to continue with the initialization
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Doing Diffie-Hellman key exchange with hash SHA-1
Waiting for the server to continue with the initialization
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Verifying host key rsa2 0x10001,0xb8c5e...d:b1:cc:2e:9a:58:e4
Asking user:
The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is.

The server's rsa2 key fingerprint is:
ssh-rsa 2048 ...d:b1:cc:2e:9a:58:e4

If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.

Continue connecting and add host key to the cache? ()
Selecting events 63 for socket 884
Host key fingerprint is:
ssh-rsa 2048 ...d:b1:cc:2e:9a:58:e4
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Waiting for the server to continue with the initialization
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Using username "myusername".
Waiting for the server to continue with the initialization
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Prompt (7, SSH password, , &Password: )
Sent password
Waiting for the server to continue with the initialization
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Access granted
Waiting for the server to continue with the initialization
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Opened channel for session
Waiting for the server to continue with the initialization
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Started a shell/command
--------------------------------------------------------------------------
Using SFTP protocol.
Doing startup conversation with host.
Type: SSH_FXP_INIT, Size: 5, Number: -1
01,00,00,00,05,
Sent 9 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 128 bytes (0)
Read 4 bytes (124 pending)
Read 124 bytes (0 pending)
Type: SSH_FXP_VERSION, Size: 124, Number: -1
02,00,00,00,...
SFTP version 3 negotiated.
Unknown server extension posix-rename@openssh.com="1"
Unknown server extension statvfs@openssh.com="2"
Unknown server extension fstatvfs@openssh.com="2"
Unknown server extension hardlink@openssh.com="1"
We believe the server has signed timestamps bug
We will use UTF-8 strings for status messages only
Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
Getting current directory name.
Getting real path for '.'
Type: SSH_FXP_REALPATH, Size: 10, Number: 16
10,00,00,00,10,00,00,00,01,2E,
Sent 14 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 51 bytes (0)
Read 4 bytes (47 pending)
Read 47 bytes (0 pending)
Type: SSH_FXP_NAME, Size: 47, Number: 16
68,00,00,00,1...
Real path is '/home/myusername'
Listing directory "/home/myusername".
Type: SSH_FXP_OPENDIR, Size: 22, Number: 267
0B,00,00,01,...
Sent 26 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 17 bytes (0)
Read 4 bytes (13 pending)
Read 13 bytes (0 pending)
Type: SSH_FXP_HANDLE, Size: 13, Number: 267
66,00,00,01,...
Type: SSH_FXP_READDIR, Size: 13, Number: 524
0C,00,00,...
Sent 17 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 917 bytes (0)
Read 4 bytes (913 pending)
Read 913 bytes (0 pending)
Type: SSH_FXP_NAME, Size: 913, Number: 524
68,00,00,02,...
Type: SSH_FXP_READDIR, Size: 13, Number: 780
0C,00,00,03,...
Sent 17 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Read file '.' from listing
Read file '.profile' from listing
Read file '.bashrc' from listing
Read file 'myusername-sftp-server' from listing
Read file '..' from listing
Read file '.cache' from listing
Read file '.bash_history' from listing
Read file '.bash_logout' from listing
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 32 bytes (0)
Read 4 bytes (28 pending)
Read 28 bytes (0 pending)
Type: SSH_FXP_STATUS, Size: 28, Number: 780
65,00,00,03,...
00,00,00,
Status code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
04,00,00,04,...
Sent 17 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
.profile;-;675;2013-04-04T13:31:46.000Z;"myusername" [1000];"myusername" [1000];rw-r--r--;2
.bashrc;-;3489;2013-04-17T15:19:27.000Z;"myusername" [1000];"myusername" [1000];rw-r--r--;2
..;d;4096;2013-04-23T03:15:07.000Z;"root" [0];"root" [0];rwxr-xr-x;0
.cache;d;4096;2013-04-10T15:07:52.000Z;"myusername" [1000];"myusername" [1000];rwx------;2
.bash_history;-;642;2013-04-18T21:20:00.000Z;"myusername" [1000];"myusername" [1000];rw-------;2
.bash_logout;-;220;2013-04-04T13:31:46.000Z;"myusername" [1000];"myusername" [1000];rw-r--r--;2
Startup conversation with host finished.
Session upkeep
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 28 bytes (0)
Changing directory to "..".
Getting real path for '/home/myusername/..'
Type: SSH_FXP_REALPATH, Size: 25, Number: 1296
10,00,...
Sent 29 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Read 4 bytes (24 pending)
Read 24 bytes (0 pending)
Type: SSH_FXP_STATUS, Size: 24, Number: 1028
65,00,00,04,...
Discarding reserved response
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 35 bytes (0)
Read 4 bytes (31 pending)
Read 31 bytes (0 pending)
Type: SSH_FXP_NAME, Size: 31, Number: 1296
68,00,00,05,...
Real path is '/home'
Trying to open directory "/home".
Type: SSH_FXP_LSTAT, Size: 14, Number: 1543
07,00,00,...
Sent 18 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 41 bytes (0)
Read 4 bytes (37 pending)
Read 37 bytes (0 pending)
Type: SSH_FXP_ATTRS, Size: 37, Number: 1543
69,00,00,...
Getting current directory name.
Listing directory "/home".
Type: SSH_FXP_OPENDIR, Size: 14, Number: 1803
0B,00,00,...
Sent 18 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 17 bytes (0)
Read 4 bytes (13 pending)
Read 13 bytes (0 pending)
Type: SSH_FXP_HANDLE, Size: 13, Number: 1803
66,00,00...
Type: SSH_FXP_READDIR, Size: 13, Number: 2060
0C,00,00,...
Sent 17 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 2113 bytes (0)
Read 4 bytes (2109 pending)
Read 2109 bytes (0 pending)
Type: SSH_FXP_NAME, Size: 2109, Number: 2060
68,00,00,...
Type: SSH_FXP_READDIR, Size: 13, Number: 2316
0C,00,...
Sent 17 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Read file 'backups' from listing
Read file 'myusername' from listing
Read file '.' from listing
Read file 'default' from listing
Read file '..' from listing
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 32 bytes (0)
Read 4 bytes (28 pending)
Read 28 bytes (0 pending)
Type: SSH_FXP_STATUS, Size: 28, Number: 2316
65,00,00,09,....
Status code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 2564
04,00,00,0A,....
Sent 17 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
backups;d;4096;2013-04-21T18:08:39.000Z;"root" [0];"root" [0];rwxr-xr-x;0
myusername;d;4096;2013-04-15T22:05:09.000Z;"myusername" [1000];"myusername" [1000];rwxr-xr-x;0
default;d;4096;2013-04-10T18:37:51.000Z;"nobody" [65534];"nogroup" [65534];rwxr-xr-x;0
Session upkeep
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 28 bytes (0)

...

Creating directory "Newfolder".
Canonifying: "Newfolder"
Getting real path for '/home/Newfolder'
Type: SSH_FXP_REALPATH, Size: 24, Number: 5392
10,00,00,...
Sent 28 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 33 bytes (0)
Read 4 bytes (29 pending)
Read 29 bytes (0 pending)
Type: SSH_FXP_STATUS, Size: 29, Number: 5392
65,00,00,...
Status code: 2, Message: 5392, Server: No such file, Language: 
Getting real path for '/home/'
Type: SSH_FXP_REALPATH, Size: 15, Number: 5648
10,00,00,...
Sent 19 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 35 bytes (0)
Read 4 bytes (31 pending)
Read 31 bytes (0 pending)
Type: SSH_FXP_NAME, Size: 31, Number: 5648
68,00,00,16,...
Real path is '/home'
Canonified: "/home/Newfolder"
Type: SSH_FXP_MKDIR, Size: 28, Number: 5134
0E,00,00,...
Sent 32 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 38 bytes (0)
Read 4 bytes (34 pending)
Read 34 bytes (0 pending)
Type: SSH_FXP_STATUS, Size: 34, Number: 5134
65,00,00,...
Status code: 3, Message: 5134, Server: Permission denied, Language: 
Asking user:
Error creating folder 'Newfolder'. ("Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 14")
Listing directory "/home".
Type: SSH_FXP_OPENDIR, Size: 14, Number: 5899
0B,00,00,...
Sent 18 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 17 bytes (0)
Read 4 bytes (13 pending)
Read 13 bytes (0 pending)
Type: SSH_FXP_HANDLE, Size: 13, Number: 5899
66,00,00,...
Type: SSH_FXP_READDIR, Size: 13, Number: 6156
0C,00,00,...
Sent 17 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 2113 bytes (0)
Read 4 bytes (2109 pending)
Read 2109 bytes (0 pending)
Type: SSH_FXP_NAME, Size: 2109, Number: 6156
68,00,00,18,0...
Type: SSH_FXP_READDIR, Size: 13, Number: 6412
0C,00,00,...
Sent 17 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
Read file 'backups' from listing
Read file 'myusername' from listing
Read file '.' from listing
Read file 'default' from listing
Read file '..' from listing
Waiting for another 4 bytes
Looking for incoming data
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 32 bytes (0)
Read 4 bytes (28 pending)
Read 28 bytes (0 pending)
Type: SSH_FXP_STATUS, Size: 28, Number: 6412
65,00,00,19,0...
Status code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 6660
04,00,00,...
Sent 17 bytes
There are 0 bytes remaining in the send buffer
Looking for network events
Timeout waiting for network events
backups;d;4096;2013-04-21T18:08:39.000Z;"root" [0];"root" [0];rwxr-xr-x;0
default;d;4096;2013-04-10T18:37:51.000Z;"nobody" [65534];"nogroup" [65534];rwxr-xr-x;0
..;d;4096;2013-04-11T17:00:32.000Z;"root" [0];"root" [0];rwxr-xr-x;0
Session upkeep
Looking for network events
Detected network event
Enumerating network events for socket 884
Enumerated 1 network events making 1 cumulative events for socket 884
Handling network read event on socket 884 with error 0
Received 28 bytes (0)
Closing connection.
Sending special code: 12
Sent EOF message
Selecting events 0 for socket 884


thanks for your interest to my problem :D
martin

I have sent you an email with a dev version of WinSCP to address you have used to register on this forum.
patrick73

Thanks you Prikryl for this judicious remark :D

I prefer that :)

So my problem stay insolvable :cry:

I have tested via putty and all is possible via ssh (create dir,...) via sudo and without password .
and when i connect via WinSCP, have no error relative to the command "sudo /usr/lib/openssh/sftp-server" .
But has you can see in my log, its not possible to create directory or edit file if i havent user's rights on it (but it would be with sudo like a root user)...
This problem came with the new version of ubuntu, and I precise that its a fresh install...

any idea ?
martin

patrick73 wrote:

I the log we can see :

Error message from server: Permission denied

Request code: 14

and on code list (https://winscp.net/eng/docs/sftp_codes )
i can read this :
code 14 : "No space on file-system" :
The requested operation cannot be completed because there is insufficient free space on the filesystem.

The "code 14" is status/error code. The error code in your case is 3 = "Permission denied". You can see that in the log.
The request code is ID of the request (SSH_FXP_MKDIR = make directory).
patrick73

I the log we can see :

Error message from server: Permission denied

Request code: 14

and on code list (https://winscp.net/eng/docs/sftp_codes )
i can read this :
code 14 : "No space on file-system" :
The requested operation cannot be completed because there is insufficient free space on the filesystem.

and it's a new server with 1.79 TB total, 105.17 GB used !!!

so what the problem here ?
patrick73

More informations :
I resolve a problem in file sudoers that was because my added line "myusername ALL=NOPASSWD: ALL" wasnt at to the end of the file and be nullified by later entries...

I can now connect with SFTP option set to "sudo /usr/lib/openssh/sftp-server",
BUT i still cant create directory : access denied !!!

I precise that i can do anything from the putty command line....

here is my WinSCP log :
Session name: myusername@192.168.0.1 -- SD-CLIENTS-2 +ROOT (Stored session)

Host name: 192.168.0.1 (Port: 22)
User name: myusername (Password: Yes, Key file: No)
Tunnel: No
Transfer Protocol: SFTP
Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
Proxy: none
SSH protocol version: 2; Compression: No
Bypass authentication: No
Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
SSH Bugs: A,A,A,A,A,A,A,A,A,A
SFTP Bugs: A,A
Return code variable: Autodetect; Lookup user groups: A
Shell: default
EOL: 0, UTF: 2
Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
Local directory: C:\Users\myusername\Documents, Remote directory: /home, Update: Yes, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
DST mode: 1; Timezone offset: 0h 0m
--------------------------------------------------------------------------
Looking up host "192.168.0.1"
Connecting to 192.168.0.1 port 22
Server version: SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
Using SSH protocol version 2
We claim version: SSH-2.0-WinSCP_release_5.1.4
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-1
Verifying host key rsa2 0x10001,0xb8c5ebc54c1ab0c17fec2be1b3db394675a42da9f... with fingerprint ssh-rsa 2048 71:22:cf:50:fb:70:4d:b1:cc:2e:9a:58:e4
Host key matches cached key
Host key fingerprint is:
ssh-rsa 2048 71:22:cf:50:fb:70:4d:b1:cc:2e:9a:58:e4
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "myusername".
Prompt (7, SSH password, , &Password: )
Using stored password.
Sent password
Access granted
Opened channel for session
Started a shell/command
--------------------------------------------------------------------------
Using SFTP protocol.
Doing startup conversation with host.
Type: SSH_FXP_INIT, Size: 5, Number: -1
Type: SSH_FXP_VERSION, Size: 124, Number: -1
SFTP version 3 negotiated.
Unknown server extension posix-rename@openssh.com="1"
Unknown server extension statvfs@openssh.com="2"
Unknown server extension fstatvfs@openssh.com="2"
Unknown server extension hardlink@openssh.com="1"
We believe the server has signed timestamps bug
We will use UTF-8 strings for status messages only
Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
Changing directory to "/home".
Getting real path for '/home'
Type: SSH_FXP_REALPATH, Size: 14, Number: 16
Type: SSH_FXP_NAME, Size: 31, Number: 16
Real path is '/home'
Trying to open directory "/home".
Type: SSH_FXP_LSTAT, Size: 14, Number: 263
Type: SSH_FXP_ATTRS, Size: 37, Number: 263
Getting current directory name.
Listing directory "/home".
Type: SSH_FXP_OPENDIR, Size: 14, Number: 523
Type: SSH_FXP_HANDLE, Size: 13, Number: 523
Type: SSH_FXP_READDIR, Size: 13, Number: 780
Type: SSH_FXP_NAME, Size: 537, Number: 780
Type: SSH_FXP_READDIR, Size: 13, Number: 1036
Type: SSH_FXP_STATUS, Size: 28, Number: 1036
Status code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 1284
Startup conversation with host finished.
Creating directory "Newfolder".
Canonifying: "Newfolder"
Getting real path for '/home/Newfolder'
Type: SSH_FXP_REALPATH, Size: 24, Number: 1808
Type: SSH_FXP_STATUS, Size: 24, Number: 1284
Discarding reserved response
Type: SSH_FXP_STATUS, Size: 29, Number: 1808
Status code: 2, Message: 1808, Server: No such file, Language: 
Getting real path for '/home/'
Type: SSH_FXP_REALPATH, Size: 15, Number: 2064
Type: SSH_FXP_NAME, Size: 31, Number: 2064
Real path is '/home'
Canonified: "/home/Newfolder"
Type: SSH_FXP_MKDIR, Size: 28, Number: 1550
Type: SSH_FXP_STATUS, Size: 34, Number: 1550
Status code: 3, Message: 1550, Server: Permission denied, Language: 
Asking user:
Error creating folder 'Newfolder'. ("Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 14")
Listing directory "/home".
Type: SSH_FXP_OPENDIR, Size: 14, Number: 2315
Type: SSH_FXP_HANDLE, Size: 13, Number: 2315
Type: SSH_FXP_READDIR, Size: 13, Number: 2572
Type: SSH_FXP_NAME, Size: 537, Number: 2572
Type: SSH_FXP_READDIR, Size: 13, Number: 2828
Type: SSH_FXP_STATUS, Size: 28, Number: 2828
Status code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 3076


some ideas where i can investigate ?
patrick73

sudo dont work anymore with new Ubuntu version (12.04.2)

in the last Ubuntu Linux 12.04.2, one of major change is that root isn't activated by default.
And in this version, i can't activated SFTP working with root right (for example to create directory,etc...) : permissions denied !

my log :
sshd[34150]: Accepted password for myusername from 100.000.000.001 port 44253 ssh2

sshd[34150]: pam_unix(sshd:session): session opened for user myusername by (uid=0)
sudo: pam_unix(sudo:auth): conversation failed
sudo: pam_unix(sudo:auth): auth could not identify password for [myusername]
sudo: pam_unix(sudo:auth): conversation failed
sudo: pam_unix(sudo:auth): auth could not identify password for [myusername]
sudo: pam_unix(sudo:auth): conversation failed
sudo: pam_unix(sudo:auth): auth could not identify password for [myusername]
sudo:  myusername : 3 incorrect password attempts ; TTY=unknown ; PWD=/home/myusername ; USER=root ; COMMAND=/usr/lib/openssh/sftp-server
sshd[34150]: pam_unix(sshd:session): session closed for user myusername


in sudoers (with visudo) because there isnot "requiretty" option, i have try to add this:
Defaults:myusername!requiretty

and also add this line :
myusername ALL=NOPASSWD: /usr/lib/openssh/sftp-server

but dont work too!

In this ubuntu version, root isnt activated by default (for security raisons) so i prefer not active it...

Can you help me ?