Unable to create new directory

Advertisement

AIXman
Joined:
Posts:
3

Unable to create new directory

I am using WinSCP 3.6.1 to connect to several AIX servers, using an RSA key and SSH2 protocol. On some servers, I am able to create subdirectories in my home directory. In others, I am not, and I receive a "Permission denied" error. I can login via PuTTY and have full access.

It appears to be an SFTP/SCP issue. If I successfully login with WinSCP via SFTP, I cannot create a subdirectory, called "New". If the login fails and I fallback to SCP, I can create the subdirectory.

The failure seems to be that the full path to the new directory is incorrect, i.e. it omits the final "/" before the new directory name.

I am including two log files (with server names and IP addresses masked). First, the successful version:

. --------------------------------------------------------------------------
. WinSCP Version 3.6.1 (Build 221) (OS 5.0.2195 Service Pack 3)
. Login time: Friday, June 04, 2004 12:54:42 PM
. --------------------------------------------------------------------------
. Session name: sbassle@xxxxxxxx
. Host name: xxxxxxxx (Port: 22)
. User name: sbassle (Password: No, Key file: No)
. Transfer Protocol: SFTP (SCP)
. SSH protocol version: 2; Compression: Yes
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs:
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
. Looking up host "xxxxxxxx"
. Connecting to nn.nn.nn.nn port 22
. Server version: SSH-2.0-OpenSSH_3.7.1p1-pwexp24
. We claim version: SSH-2.0-WinSCP-release-3.6.1
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-rsa 1024 d2:ec:38:2d:42:02:ba:17:4c:4d:f2:24:d6:a5:7b:e2
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
! Using username "sbassle".
. Pageant is running. Requesting keys.
. Pageant has 1 SSH2 keys
. Trying Pageant key #0
! Authenticating with public key "rsa-key-20011010" from agent
. Sending Pageant's response
. Access granted
. Opened channel for session
. Primary command failed; attempting fallback
. Started a shell/command
. --------------------------------------------------------------------------
. Using SCP protocol.
. Doing startup conversation with host.
. Skipping host startup message (if any).
> echo "WinSCP: this is end-of-file:0"
< WinSCP: this is end-of-file:0
. Detecting variable containing return code of last command.
. Trying "$status".
> echo "$status" ; echo "WinSCP: this is end-of-file:0"
< WinSCP: this is end-of-file:0
. Trying "$?".
> echo "$?" ; echo "WinSCP: this is end-of-file:0"
< 0
< WinSCP: this is end-of-file:0
. Return code variable "$?" selected.
. Clearing all aliases.
> unalias "echo" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "pwd" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "cd" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "ls" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unalias "groups" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "scp" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "rm" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unalias "mv" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unalias "mkdir" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "chmod" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unalias "chgrp" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "chown" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "unset" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "unalias" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "alias" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "ln" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "%s" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
. Clearing national user variables.
> unset "LANG" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "LANGUAGE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_CTYPE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_COLLATE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_MONETARY" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_NUMERIC" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_TIME" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_MESSAGES" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
. Looking up groups and users.
> groups ; echo "WinSCP: this is end-of-file:$?"
< system staff lgsvr
< WinSCP: this is end-of-file:0
. Following groups found:
. system
. staff
. lgsvr
. No users found.
. Getting current directory name.
> pwd ; echo "WinSCP: this is end-of-file:$?"
< /home/sbassle
< WinSCP: this is end-of-file:0
. Listing current directory.
> ls -la ; echo "WinSCP: this is end-of-file:$?"
< total 130868
< drwxr-x--- 4 sbassle lgsvr 1024 Jun 4 12:53 .
< drwxr-xr-x 56 root system 1536 May 28 10:36 ..
< -rw------- 1 sbassle system 432 Jun 4 12:53 .Xauthority
< -rwxr----- 1 sbassle system 735 Sep 2 2003 .profile
< -rw------- 1 sbassle system 4804 Jun 4 12:53 .sh_history
< drwxr-x--- 2 sbassle system 512 Mar 3 08:08 .ssh
< -rw-r----- 1 sbassle system 46421 Mar 10 15:18 1163.txt
< -rw-r----- 1 sbassle system 2286 Jan 16 13:40 TDP_upgrades.txt
< drwxr-x--- 2 sbassle system 512 Dec 1 2003 TSM5.2_64bit
< -rwxrwxr-x 1 root system 821 Oct 6 2003 assign.pl
< -rwxr-xr-x 1 root system 590 Sep 9 2003 assign.pl.old
< -rw-r----- 1 sbassle system 136724 Mar 22 14:51 data
< -rw-r----- 1 sbassle system 188 Jan 13 10:53 dsmerror.log
< -rw-r----- 1 sbassle system 10434560 Dec 3 2003 hostAgent-AIX.tar
< -r--r----- 1 sbassle system 6967 May 28 13:43 inetd.conf
< -rw-r----- 1 sbassle system 45342720 Feb 3 11:44 jre14.tar
< -rw-r----- 1 sbassle system 234 May 6 13:54 no_sendmail
< -rwxr-xr-x 1 root system 8201 Sep 8 2003 notify.sh
< -rw-r----- 1 sbassle system 701401 Sep 19 2003 openssh-3.7.1p1-pwexp24.patch.txt
< -rw-r----- 1 sbassle system 3614720 Sep 17 2003 openssh-3.7.1p1.tar
< -rw-r----- 1 sbassle system 622649 Sep 17 2003 openssh-3.7p1-pwexp24.patch.txt
< -rw-r----- 1 sbassle system 3768320 Apr 8 12:00 openssh-3.8p1.tar
< -rwxr-x--- 1 sbassle system 2004564 Nov 19 2003 openssl-0.9.6.7.exe
< -rw-r----- 1 sbassle system 61716 May 23 2001 setup.ini
< -rw-r--r-- 1 sbassle system 38503 Jun 2 10:47 smit.log
< -rw-r--r-- 1 sbassle system 5281 Nov 18 2003 smit.script
< -rw-r----- 1 sbassle system 518 Jun 2 12:22 tcpd.txt
< -rwxr-x--- 1 sbassle system 339 May 14 12:45 test
< -rw-r----- 1 sbassle system 81700 Aug 1 2003 tsmtrace.dos
< -rw-r----- 1 sbassle system 82678 Aug 1 2003 tsmtrace.txt
< WinSCP: this is end-of-file:0
. Startup conversation with host finished.
. Creating directory "New".
> mkdir "New" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
. Listing current directory.
> ls -la ; echo "WinSCP: this is end-of-file:$?"
< total 130869
< drwxr-x--- 5 sbassle lgsvr 1024 Jun 4 12:55 .
< drwxr-xr-x 56 root system 1536 May 28 10:36 ..
< -rw------- 1 sbassle system 432 Jun 4 12:53 .Xauthority
< -rwxr----- 1 sbassle system 735 Sep 2 2003 .profile
< -rw------- 1 sbassle system 4804 Jun 4 12:53 .sh_history
< drwxr-x--- 2 sbassle system 512 Mar 3 08:08 .ssh
< -rw-r----- 1 sbassle system 46421 Mar 10 15:18 1163.txt
< drwxr-x--- 2 sbassle system 512 Jun 4 12:55 New
< -rw-r----- 1 sbassle system 2286 Jan 16 13:40 TDP_upgrades.txt
< drwxr-x--- 2 sbassle system 512 Dec 1 2003 TSM5.2_64bit
< -rwxrwxr-x 1 root system 821 Oct 6 2003 assign.pl
< -rwxr-xr-x 1 root system 590 Sep 9 2003 assign.pl.old
< -rw-r----- 1 sbassle system 136724 Mar 22 14:51 data
< -rw-r----- 1 sbassle system 188 Jan 13 10:53 dsmerror.log
< -rw-r----- 1 sbassle system 10434560 Dec 3 2003 hostAgent-AIX.tar
< -r--r----- 1 sbassle system 6967 May 28 13:43 inetd.conf
< -rw-r----- 1 sbassle system 45342720 Feb 3 11:44 jre14.tar
< -rw-r----- 1 sbassle system 234 May 6 13:54 no_sendmail
< -rwxr-xr-x 1 root system 8201 Sep 8 2003 notify.sh
< -rw-r----- 1 sbassle system 701401 Sep 19 2003 openssh-3.7.1p1-pwexp24.patch.txt
< -rw-r----- 1 sbassle system 3614720 Sep 17 2003 openssh-3.7.1p1.tar
< -rw-r----- 1 sbassle system 622649 Sep 17 2003 openssh-3.7p1-pwexp24.patch.txt
< -rw-r----- 1 sbassle system 3768320 Apr 8 12:00 openssh-3.8p1.tar
< -rwxr-x--- 1 sbassle system 2004564 Nov 19 2003 openssl-0.9.6.7.exe
< -rw-r----- 1 sbassle system 61716 May 23 2001 setup.ini
< -rw-r--r-- 1 sbassle system 38503 Jun 2 10:47 smit.log
< -rw-r--r-- 1 sbassle system 5281 Nov 18 2003 smit.script
< -rw-r----- 1 sbassle system 518 Jun 2 12:22 tcpd.txt
< -rwxr-x--- 1 sbassle system 339 May 14 12:45 test
< -rw-r----- 1 sbassle system 81700 Aug 1 2003 tsmtrace.dos
< -rw-r----- 1 sbassle system 82678 Aug 1 2003 tsmtrace.txt
< WinSCP: this is end-of-file:0
. Closing connection.


Next, the unsuccessful version:

. --------------------------------------------------------------------------
. WinSCP Version 3.6.1 (Build 221) (OS 5.0.2195 Service Pack 3)
. Login time: Friday, June 04, 2004 12:50:40 PM
. --------------------------------------------------------------------------
. Session name: sbassle@yyyyyyyy
. Host name: yyyyyyyy (Port: 22)
. User name: sbassle (Password: No, Key file: No)
. Transfer Protocol: SFTP (SCP)
. SSH protocol version: 2; Compression: Yes
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs:
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
. Looking up host "yyyyyyyy"
. Connecting to nn.nn.nn.nn port 22
. Server version: SSH-2.0-OpenSSH_3.7.1p1-pwexp24
. We claim version: SSH-2.0-WinSCP-release-3.6.1
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-rsa 1024 e6:48:ea:77:90:21:ef:ab:cf:a8:3e:1a:01:85:37:5b
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
! Using username "sbassle".
. Pageant is running. Requesting keys.
. Pageant has 1 SSH2 keys
. Trying Pageant key #0
! Authenticating with public key "rsa-key-20011010" from agent
. Sending Pageant's response
. 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: 5, Number: -1
. SFTP version 3 negotiated.
> Type: SSH_FXP_EXTENDED, Size: 38, Number: 200
< Type: SSH_FXP_STATUS, Size: 38, Number: 200
< Status/error code: 8
. Server does not recognise WinSCP.
. Getting current directory name.
. Getting real path for '.'
> Type: SSH_FXP_REALPATH, Size: 10, Number: 528
< Type: SSH_FXP_NAME, Size: 47, Number: 528
. Real path is '/home/sbassle'
. Listing directory "/home/sbassle".
> Type: SSH_FXP_OPENDIR, Size: 22, Number: 779
< Type: SSH_FXP_HANDLE, Size: 13, Number: 779
> Type: SSH_FXP_READDIR, Size: 13, Number: 1036
< Type: SSH_FXP_NAME, Size: 1681, Number: 1036
> Type: SSH_FXP_READDIR, Size: 13, Number: 1292
< Type: SSH_FXP_STATUS, Size: 28, Number: 1292
< Status/error code: 1
> Type: SSH_FXP_CLOSE, Size: 13, Number: 1540
< Type: SSH_FXP_STATUS, Size: 24, Number: 1540
< Status/error code: 0
. Startup conversation with host finished.
. Creating directory "New".
. Canonifying: "New"
. Getting real path for '/home/sbassle/New'
> Type: SSH_FXP_REALPATH, Size: 26, Number: 2064
< Type: SSH_FXP_NAME, Size: 53, Number: 2064
. Real path is '/home/sbassleNew'
. Canonified: "/home/sbassleNew"
> Type: SSH_FXP_MKDIR, Size: 29, Number: 1806
< Type: SSH_FXP_STATUS, Size: 34, Number: 1806
< Status/error code: 3, Message: 1806, Server: Permission denied, Language: *
. Asking user:
. Can't create folder 'New'. ("Permission denied.
. Error code: 3
. Error message from server: Permission denied (*)
. Request code: 14")
. Closing connection.

Thanks for your help and a great product!
Steve Bassler

Reply with quote

Advertisement

AIXman
Joined:
Posts:
3

Additional information:

I found out why the SFTP login was failing on the one server. In the SSHD configuration file, I had the wrong path for the SFTP subsystem. I corrected this, so I can now login there with SFTP. However, that means that on this server I can also no longer create a subdirectory unless I force it to use SCP. :(

Steve

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
33,710
Location:
Prague, Czechia

Can I have a test account on the server? If not, can you test it with other SFTP client, like PSFTP?

Reply with quote

AIXman
Joined:
Posts:
3

It's on an internal network, so no, I can't give you an account. Here are a couple of tests, the first with native command-line SSH from another AIX server, the second with PSFTP. Interestingly, creating a subdirectory works with SSH but not with PuTTY.

Again, the server name and IP address are masked.

SSH:

$ sftp -vvv xxxxxxxx
Connecting to xxxxxxxx...
OpenSSH_3.7.1p1-pwexp24, SSH protocols 1.5/2.0, OpenSSL 0.9.6c 21 dec 2001
debug1: Reading configuration data /usr/local/etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to xxxxxxxx [nn.nn.nn.nn] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /home/sbassle/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type '----'
debug3: key_read: missing keytype
debug1: identity file /home/sbassle/.ssh/id_rsa type 1
debug1: identity file /home/sbassle/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.7.1p1-pwexp24
debug1: match: OpenSSH_3.7.1p1-pwexp24 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.7.1p1-pwexp24
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 134/256
debug2: bits set: 1596/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /home/sbassle/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 5
debug3: check_host_in_hostfile: filename /home/sbassle/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 5
debug1: Host 'xxxxxxxx' is known and matches the RSA host key.
debug1: Found key in /home/sbassle/.ssh/known_hosts:5
debug2: bits set: 1617/3191
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/sbassle/.ssh/id_rsa (200deeb8)
debug2: key: /home/sbassle/.ssh/id_dsa (0)
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/sbassle/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug2: input_userauth_pk_ok: fp 71:0d:30:3b:af:92:ab:a6:35:a5:5c:24:66:19:9a:e6
debug3: sign_and_send_pubkey
debug1: Authentication succeeded (publickey).
debug2: fd 5 setting O_NONBLOCK
debug2: fd 6 is O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: ssh_session2_setup: id 0
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
debug2: Remote version: 3
debug3: Sent message fd 3 T:16 I:1
debug3: SSH_FXP_REALPATH . -> /home/sbassle
sftp> ls -l
ebug3: Sent message fd 3 T:7 I:2
debug3: Received stat reply T:105 I:2
debug3: Sent message fd 3 T:7 I:3
debug3: Received stat reply T:105 I:3
debug3: Sending SSH2_FXP_READDIR I:5
debug3: Received reply T:104 I:5
debug3: Received 31 SSH2_FXP_NAME responses
debug3: Sending SSH2_FXP_READDIR I:6
debug3: Received reply T:101 I:6
debug3: Received SSH2_FXP_STATUS 1
debug3: Sent message SSH2_FXP_CLOSE I:7
debug3: SSH2_FXP_STATUS 0
drwxr-x--- 0 304 300 1024 Jun 7 07:54 .
drwxr-xr-x 0 0 0 1536 May 28 10:36 ..
-rw------- 0 304 0 432 Jun 7 07:54 .Xauthority
-rwxr----- 0 304 0 735 Sep 2 2003 .profile
-rw------- 0 304 0 5504 Jun 7 08:31 .sh_history
drwxr-x--- 0 304 0 512 Mar 3 08:08 .ssh
-rw-r----- 0 304 0 46421 Mar 10 15:18 1163.txt
drwxr-x--- 0 304 0 512 Jun 4 12:55 New
-rw-r----- 0 304 0 2286 Jan 16 13:40 TDP_upgrades.txt
drwxr-x--- 0 304 0 512 Dec 1 2003 TSM5.2_64bit
-rwxrwxr-x 0 0 0 821 Oct 6 2003 assign.pl
-rwxr-xr-x 0 0 0 590 Sep 9 2003 assign.pl.old
-rw-r----- 0 304 0 136724 Mar 22 14:51 data
-rw-r----- 0 304 0 188 Jan 13 10:53 dsmerror.log
-rw-r----- 0 304 0 10434560 Dec 3 2003 hostAgent-AIX.tar
-r--r----- 0 304 0 6967 May 28 13:43 inetd.conf
-rw-r----- 0 304 0 45342720 Feb 3 11:44 jre14.tar
-rw-r----- 0 304 0 234 May 6 13:54 no_sendmail
-rwxr-xr-x 0 0 0 8201 Sep 8 2003 notify.sh
-rw-r----- 0 304 0 701401 Sep 19 2003 openssh-3.7.1p1-pwexp24.patch.txt
-rw-r----- 0 304 0 3614720 Sep 17 2003 openssh-3.7.1p1.tar
-rw-r----- 0 304 0 622649 Sep 17 2003 openssh-3.7p1-pwexp24.patch.txt
-rw-r----- 0 304 0 3768320 Apr 8 12:00 openssh-3.8p1.tar
-rwxr-x--- 0 304 0 2004564 Nov 19 2003 openssl-0.9.6.7.exe
-rw-r----- 0 304 0 61716 May 23 2001 setup.ini
-rw-r--r-- 0 304 0 38503 Jun 2 10:47 smit.log
-rw-r--r-- 0 304 0 5281 Nov 18 2003 smit.script
-rw-r----- 0 304 0 518 Jun 2 12:22 tcpd.txt
-rwxr-x--- 0 304 0 339 May 14 12:45 test
-rw-r----- 0 304 0 81700 Aug 1 2003 tsmtrace.dos
-rw-r----- 0 304 0 82678 Aug 1 2003 tsmtrace.txt
sftp> mkdir new2
debug3: Sent message fd 3 T:14 I:8
debug3: SSH2_FXP_STATUS 0
sftp> ls -l
debug3: Sent message fd 3 T:7 I:9
debug3: Received stat reply T:105 I:9
debug3: Sent message fd 3 T:7 I:10
debug3: Received stat reply T:105 I:10
debug3: Sending SSH2_FXP_READDIR I:12
debug3: Received reply T:104 I:12
debug3: Received 32 SSH2_FXP_NAME responses
debug3: Sending SSH2_FXP_READDIR I:13
debug3: Received reply T:101 I:13
debug3: Received SSH2_FXP_STATUS 1
debug3: Sent message SSH2_FXP_CLOSE I:14
debug3: SSH2_FXP_STATUS 0
drwxr-x--- 0 304 300 1024 Jun 7 08:32 .
drwxr-xr-x 0 0 0 1536 May 28 10:36 ..
-rw------- 0 304 0 432 Jun 7 07:54 .Xauthority
-rwxr----- 0 304 0 735 Sep 2 2003 .profile
-rw------- 0 304 0 5504 Jun 7 08:31 .sh_history
drwxr-x--- 0 304 0 512 Mar 3 08:08 .ssh
-rw-r----- 0 304 0 46421 Mar 10 15:18 1163.txt
drwxr-x--- 0 304 0 512 Jun 4 12:55 New
-rw-r----- 0 304 0 2286 Jan 16 13:40 TDP_upgrades.txt
drwxr-x--- 0 304 0 512 Dec 1 2003 TSM5.2_64bit
-rwxrwxr-x 0 0 0 821 Oct 6 2003 assign.pl
-rwxr-xr-x 0 0 0 590 Sep 9 2003 assign.pl.old
-rw-r----- 0 304 0 136724 Mar 22 14:51 data
-rw-r----- 0 304 0 188 Jan 13 10:53 dsmerror.log
-rw-r----- 0 304 0 10434560 Dec 3 2003 hostAgent-AIX.tar
-r--r----- 0 304 0 6967 May 28 13:43 inetd.conf
-rw-r----- 0 304 0 45342720 Feb 3 11:44 jre14.tar
drwxr-x--- 0 304 0 512 Jun 7 08:32 new2
-rw-r----- 0 304 0 234 May 6 13:54 no_sendmail
-rwxr-xr-x 0 0 0 8201 Sep 8 2003 notify.sh
-rw-r----- 0 304 0 701401 Sep 19 2003 openssh-3.7.1p1-pwexp24.patch.txt
-rw-r----- 0 304 0 3614720 Sep 17 2003 openssh-3.7.1p1.tar
-rw-r----- 0 304 0 622649 Sep 17 2003 openssh-3.7p1-pwexp24.patch.txt
-rw-r----- 0 304 0 3768320 Apr 8 12:00 openssh-3.8p1.tar
-rwxr-x--- 0 304 0 2004564 Nov 19 2003 openssl-0.9.6.7.exe
-rw-r----- 0 304 0 61716 May 23 2001 setup.ini
-rw-r--r-- 0 304 0 38503 Jun 2 10:47 smit.log
-rw-r--r-- 0 304 0 5281 Nov 18 2003 smit.script
-rw-r----- 0 304 0 518 Jun 2 12:22 tcpd.txt
-rwxr-x--- 0 304 0 339 May 14 12:45 test
-rw-r----- 0 304 0 81700 Aug 1 2003 tsmtrace.dos
-rw-r----- 0 304 0 82678 Aug 1 2003 tsmtrace.txt
sftp> quit
debug2: channel 0: read<=0 rfd 5 len 0
debug2: channel 0: read failed
debug2: channel 0: close_read
debug2: channel 0: input open -> drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug2: channel 0: input drain -> closed
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i3/0 o3/0 fd -1/-1)
debug3: channel 0: close_fds r -1 w -1 e 7
debug1: fd 0 clearing O_NONBLOCK
debug2: fd 1 is not O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 30.6 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0

PSFTP:

C:\>psftp -v xxxxxxxx
Server version: SSH-2.0-OpenSSH_3.7.1p1-pwexp24
We claim version: SSH-2.0-PuTTY-Release-0.54
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-rsa 1024 d2:ec:38:2d:42:02:ba:17:4c:4d:f2:24:d6:a5:7b:e2
Initialised AES-256 client->server encryption
Initialised AES-256 server->client encryption
Using username "sbassle".
Pageant is running. Requesting keys.
Pageant has 1 SSH2 keys
Trying Pageant key #0
Authenticating with public key "rsa-key-20011010" from agent
Sending Pageant's response
Access granted
Opened channel for session
Started a shell/command
Connected to xxxxxxxx
Remote working directory is /home/sbassle
psftp> ls
Listing directory /home/sbassle
drwxr-x--- 6 sbassle lgsvr 1024 Jun 7 08:32 .
drwxr-xr-x 56 root system 1536 May 28 10:36 ..
-rw------- 1 sbassle system 432 Jun 7 07:54 .Xauthority
-rwxr----- 1 sbassle system 735 Sep 2 2003 .profile
-rw------- 1 sbassle system 5504 Jun 7 08:31 .sh_history
drwxr-x--- 2 sbassle system 512 Mar 3 08:08 .ssh
-rw-r----- 1 sbassle system 46421 Mar 10 15:18 1163.txt
drwxr-x--- 2 sbassle system 512 Jun 4 12:55 New
-rw-r----- 1 sbassle system 2286 Jan 16 13:40 TDP_upgrades.txt
drwxr-x--- 2 sbassle system 512 Dec 1 2003 TSM5.2_64bit
-rwxrwxr-x 1 root system 821 Oct 6 2003 assign.pl
-rwxr-xr-x 1 root system 590 Sep 9 2003 assign.pl.old
-rw-r----- 1 sbassle system 136724 Mar 22 14:51 data
-rw-r----- 1 sbassle system 188 Jan 13 10:53 dsmerror.log
-rw-r----- 1 sbassle system 10434560 Dec 3 2003 hostAgent-AIX.tar
-r--r----- 1 sbassle system 6967 May 28 13:43 inetd.conf
-rw-r----- 1 sbassle system 45342720 Feb 3 11:44 jre14.tar
drwxr-x--- 2 sbassle system 512 Jun 7 08:32 new2
-rw-r----- 1 sbassle system 234 May 6 13:54 no_sendmail
-rwxr-xr-x 1 root system 8201 Sep 8 2003 notify.sh
-rw-r----- 1 sbassle system 701401 Sep 19 2003 openssh-3.7.1p1-pwexp24.patch.txt
-rw-r----- 1 sbassle system 3614720 Sep 17 2003 openssh-3.7.1p1.tar
-rw-r----- 1 sbassle system 622649 Sep 17 2003 openssh-3.7p1-pwexp24.patch.txt
-rw-r----- 1 sbassle system 3768320 Apr 8 12:00 openssh-3.8p1.tar
-rwxr-x--- 1 sbassle system 2004564 Nov 19 2003 openssl-0.9.6.7.exe
-rw-r----- 1 sbassle system 61716 May 23 2001 setup.ini
-rw-r--r-- 1 sbassle system 38503 Jun 2 10:47 smit.log
-rw-r--r-- 1 sbassle system 5281 Nov 18 2003 smit.script
-rw-r----- 1 sbassle system 518 Jun 2 12:22 tcpd.txt
-rwxr-x--- 1 sbassle system 339 May 14 12:45 test
-rw-r----- 1 sbassle system 81700 Aug 1 2003 tsmtrace.dos
-rw-r----- 1 sbassle system 82678 Aug 1 2003 tsmtrace.txt
psftp> mkdir new3
mkdir /home/sbasslenew3: permission denied
psftp> mkdir /home/sbassle/new3
mkdir /home/sbasslenew3: permission denied
psftp> quit
Sent EOF message
Server sent command exit status 0
All channels closed. Disconnecting
C:\>

Thanks again for your help,
Steve

Reply with quote

Advertisement

y29
Guest

Unable creating New Dirctory

For unknown reason, WinSCP isnot allowing me creating a directoy. I also couldnot transfer file from local storage to WinSCP and vice versa. Please what could be the issue?

Xre.PNG

Xre.PNG

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
33,710
Location:
Prague, Czechia

Re: Unable creating New Dirctory

y29 wrote:

For unknown reason, WinSCP isnot allowing me creating a directoy. I also couldnot transfer file from local storage to WinSCP and vice versa. Please what could be the issue?
Without more information, the most plausible explanation is that you simply do not have permissions to create directories on the server.

Can you create the directory using any other client using the same protocol?

Reply with quote

Advertisement

You can post new topics in this forum