Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sftp error "Couldn't canonicalise Need cwd"

Status
Not open for further replies.

Nikolai086

IS-IT--Management
Nov 21, 2007
23
0
0
CN
while ftp to machine 192.168.1.1
#sftp oracle@192.168.1.1
Couldn't canonicalise: No error
Need cwd

it should be ftp to the oracle's home DIR "/u70/home/oracle"
/u70/home/oracle is LUN and /u70/home/oracle is 755

why the sftp fail?

--
Best Regards!
Hello, I am Nikolai NG, come from Carton, China. I love here.
 
This generally is a permissions issue. Perhaps running ssh instead of sftp and using -v (or multiples of it eg -vvvv) will give you some help
ssh -vvvv 192.168.1.1
 
Does this work?

[tt]sftp oracle@192.168.1.1:/tmp[/tt]

Or this?

[tt]sftp oracle@192.168.1.1:/u70/home/oracle[/tt]

Annihilannic.
 
This does not work
----------------------------------------
Does this work?

sftp oracle@192.168.1.1:/tmp

Or this?

sftp oracle@192.168.1.1:/u70/home/oracle


sftp -vvvv oracle@192.168.1.1
---------------------------------
debug3: packet_send2: adding 64 (len 59 padlen 5 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
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
Couldn't canonicalise: No error
Need cwd
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
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
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
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 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0

--
Best Regards!
Hello, I am Nikolai NG, come from Carton, China. I love here.
 
What are the permissions on the /u70 and /u70/home dirs?

they are 755

 
Try this perhaps. On the destination system, log in as root, and run /usr/sbin/sshd -d -p 1234 2>&1 | tee /tmp/sshd.out. The on the source system run sftp -o Port=1234 oracle@192.168.1.1. Hopefully in the sshd output you should see the reason why it is failing.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top