SCP error - tcsh: No such device


 
Thread Tools Search this Thread
Operating Systems Solaris SCP error - tcsh: No such device
# 1  
Old 10-27-2006
SCP error - tcsh: No such device

I am trying to transfer a file between two Solaris machines using SCP. I tried different options, like forcing remote host to use SCP version 1 and SCP version 2. Using IP address for remote host instead of hostname. But nothing helps. Moreover, there doesnt seem to be much of a help available on Google for this problem. I checked the connectivity till layer 4 is fine. (that eliminates network and firewall issues). I can transfer files between "foo" and other machines though using SCP.


foo{82}> pwd
/var/tmp
foo{83}>scp -v ./tst.jay -1 192.168.216.120:/var/tmp
Password:
tcsh: No such device

foo{84}> telnet 192.168.216.120 22
Trying 192.168.216.120...
Connected to 192.168.216.120.
Escape character is '^]'.
SSH-2.0-Sun_SSH_1.1

foo{86}> uname -a
SunOS ui-sunray-001 5.10 Generic_118833-18 sun4u sparc SUNW,Sun-Fire- V440

on --> 192.168.216.120

> uname -a
SunOS tibcrpdev15 5.10 Generic_118822-25 sun4u sparc SUNW,Sun-Fire-V210
>

Here is the relevant debug output :-

debug1: Next authentication method: publickey
debug1: Trying private key: /usr2/XXXX/.ssh/identity
debug1: Trying private key: /usr2/XXXX/.ssh/id_rsa
debug1: Trying private key: /usr2/XXXX/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive AFS Password:
debug1: Authentication succeeded (keyboard-interactive)
debug1: fd 6 setting O_NONBLOCK
debug1: fd 7 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: channel request 0: env
debug1: channel request 0: env
debug1: channel request 0: env
debug1: Sending command: scp -v -t /var/tmp
debug1: channel request 0: exec
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: Remote: Channel 0 set: LANG=C
debug1: Remote: Channel 0 set: LC_CTYPE=C
debug1: Remote: Channel 0 set: LC_ALL=C
tcsh: No such device
debug1: channel 0: read<=0 rfd 6 len 0
debug1: channel 0: read failed
debug1: channel 0: close_read
debug1: channel 0: input open -> drain
debug1: channel 0: ibuf empty
debug1: channel 0: send eof
debug1: channel 0: input drain -> closed Exit 1
# 2  
Old 10-27-2006
SCP error - tcsh: No such device

{duplicate posting - merged threads}

Last edited by RTM; 11-06-2006 at 10:35 AM..
# 3  
Old 10-27-2006
The problem seems to be related to the server's login shell, what else would tcsh have to do with it? It's made the connection and logged in, then tcsh does something barmy. Does changing the user's login shell to sh help?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tcsh: How to suppress error messages.

Hallo, I wrote some script: 95% of the script's output consists of error messages like "mkdir: cannot create directory ‘final': File exists Exit 1" and "rm: No match. Exit 1". These messages are not harmful at all, but they make the output almost unreadable. How can I get rid of... (5 Replies)
Discussion started by: DanielDD
5 Replies

2. Shell Programming and Scripting

/usr/bin/scp error

I have this scp script running, /usr/bin/scp -r /cerner/mgr --exclude-from=/atg/move_exclude.dat 102.126.112.68:/cerner but am getting an error: --exclude-from=/atg/move_exclude.dat: No such file or directory I am wondering if the syntax is incorrect... I also have additional... (3 Replies)
Discussion started by: Daniel Gate
3 Replies

3. AIX

Error during scp

Help needed for scp error. I tried to scp a file from a server to another with scp command, but I receive a error message "Non-Interactive Shell Disallowed!". I do not know what did I do wrong, please assist. I have done this before on other servers and have never faced this error. Both are... (2 Replies)
Discussion started by: kwliew999
2 Replies

4. UNIX for Dummies Questions & Answers

scp error when using wildcard

Hello, Every time my script runs I want it to go and copy all the files from a remote server directory to my local directory. Whenever I have files in the remote directory the command scp -p $proxy_user@$proxy_server:"$remote_dir/*" ${local_dir} executes with 0; when I have no files in the... (2 Replies)
Discussion started by: rdogadin
2 Replies

5. Shell Programming and Scripting

TCSH user input error checking

This was taken down recently because it appeared to be homework, but it isn't. It's for a script I am working on at work. Thanks for the help. How do you check that user inputs (arguments 1 and 2) are both numbers and are at least 5 digits in length? (2 Replies)
Discussion started by: thibodc
2 Replies

6. UNIX for Dummies Questions & Answers

scp throws error

My script is like STAMP=$(perl -e '($ss, $mm, $hh, $DD, $MM, $YY) = localtime(time() - 100); printf "%04d%02d%02d%02d%02d", $YY + 1900, $MM + 1, $DD, $hh, $mm') touch $STAMP /sasdata/copydata/ find /sasdata/copydata -type f ! -newer /sasdata/copydata/ -print > output3.txt awk '{print "scp ... (6 Replies)
Discussion started by: tushar_spatil
6 Replies

7. UNIX for Dummies Questions & Answers

scp not working because of prompt (AIX, tcsh)

Hello, I have this problem: I have a server to which I ssh, and it has a special prompt request. The prompt is done by a ?prompt command. It is fine with SSH, since the prompt I guess gets some input, but when I use SCP, the copy always fails. So, I was wondering if there is maybe a... (1 Reply)
Discussion started by: lastZenMaster
1 Replies

8. Shell Programming and Scripting

Error using SCP command

Hi - I've a UNIX script which contains a scp command to copy a file to another server: scp <source path> <destination server:/path> (scp dir1/file1.dat server2:/dir1/subdir1) The job which is running this script is getting failed with error message "Remote copy Failed - Error Code: 7". When... (0 Replies)
Discussion started by: salselor
0 Replies

9. Debian

error using scp

hello fiends , i am facing this for the first time regarding the scp. when i am copying file1 from one machine to another machine in the same LAN scp file1 192.168.4.40:/root i am geting the error as /root/.bashrc: line 17: toilet: command not found /root/.bashrc: line 19: toilet:... (1 Reply)
Discussion started by: pradeepreddy
1 Replies

10. UNIX for Dummies Questions & Answers

scp error

I am looking for a way to transfer entire folders from a Unix server to my mac OS X system. I am trying to use scp with the command % scp -r (user@host):dir . and it diesn't seem to work. I get the error "protocol error: mtime.sec not delimited" Thanks for any help. (6 Replies)
Discussion started by: lorcet222
6 Replies
Login or Register to Ask a Question