Sponsored Content
Full Discussion: scp command not working
Operating Systems Solaris scp command not working Post 302969925 by Syruss on Wednesday 30th of March 2016 07:57:40 AM
Old 03-30-2016
scp command not working

Hi All,

I have automated the file transfer process using shell script.I used passwordless SCP to copy the files to my remote server as below.

Code:
 scp -P 2022 -v Test.dat username@Host:destination_folder

But the files are not copied to the destination folder.The execution is terminated with exit status 1.Below is the trace detail.
Code:
debug1: Sending command: scp -v -t /data/inf/jk/mnp/SrcFiles/user/bop/
Sending file modes: C0740 4 Test.dat
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing 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 1
lost connection

Thanks in advance.

Last edited by DukeNuke2; 03-30-2016 at 12:03 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

scp is not working through sh script

Hi All, I am generating a ~ delimited file from oracle table and then transfer it to another server through scp. if then scp $COM_DIR/ABC.txt unix.nam.nsroot.net:/home/magna/dum/ABC.txt else echo "File does not exist, please check" >>$LOG fi The script generates the file,... (8 Replies)
Discussion started by: Amit.Sagpariya
8 Replies

2. Programming

Controlling a child's stdin/stdout (not working with scp)

All, Ok...so I know I *should* be able to control a process's stdin and stdout from the parent by creating pipes and then dup'ing them in the child. And, this works with all "normal" programs that I've tried. Unfortunately, I want to intercept the stdin/out of the scp application and it seems... (9 Replies)
Discussion started by: DreamWarrior
9 Replies

3. AIX

scp not working while ssh works

I try to transfer a file from a Linux host to an AIX-host via scp, which fails. Logging into the AIX-system from the same Linux-system via ssh works well and i am a bit at a loss where to look. The original setup was with a user account provided via LDAP, but because of the error message (see... (4 Replies)
Discussion started by: bakunin
4 Replies

4. Solaris

ssh and scp not working

Dear All, whenever i try the command ssh , it is giving the below error. ld.so.1: ssh: fatal: relocation error: file /usr/bin/ssh: symbol SUNWcry_installed: referenced symbol not found Killed For SCP also the same error is coming. Pl reply me if you have answers. Rj (4 Replies)
Discussion started by: jegaraman
4 Replies

5. 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

6. Solaris

SCP not working while SSH works

Dear expert, I have gone through the thread A similar error arising for me , please find the debug logs. I have tried from another server to push a file using scp but not working for me. i am using SunOS SUNW,SPARC-Enterprise machine. Thanks (5 Replies)
Discussion started by: posix
5 Replies

7. Shell Programming and Scripting

scp not working in expect script

Hi All, I run the scp command in shell prompt without issue, but when on expect script as below: #!/usr/bin/expect spawn scp /var/spool/sms/failed.tar.gz abc@10.10.12.2:/home/abc expect "abc@10.10.12.2's password: " send "abcfef\r" exit 0 It looks not working at all and the... (3 Replies)
Discussion started by: elingtey
3 Replies

8. UNIX for Dummies Questions & Answers

scp command help

I need one help. I want to copy specific folder/file from one Linux servers to another. I want scp command that will search the file/folder in given path of one server and copy that result on another remote server. Kindly help me to resolve issue Thanks and Regards, Rajesh (4 Replies)
Discussion started by: Nawrajesh
4 Replies

9. Shell Programming and Scripting

Scp/Rsync transfers stopped working?

Hi all, I have a backup script from my work computer to my home computer for my research for multiple reasons. It's a simple rsync script, with about 5 gigs of data. (Obviously with rsync it doesn't transfer 5 GB every time.). Recently, it has stopped working, scp also doesn't work, it simply... (1 Reply)
Discussion started by: corrado33
1 Replies

10. UNIX for Dummies Questions & Answers

scp command not working

I am trying to copy a file from a remote linux server to my local ubuntu box. I am issuing the following command: scp -v root@remote_server_IP:/test /data The output of the command is : OpenSSH_6.6, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config... (3 Replies)
Discussion started by: Palak Sharma
3 Replies
AFPD(8) 							   Netatalk 2.2 							   AFPD(8)

NAME
afpd - Apple Filing Protocol daemon SYNOPSIS
afpd [-duptDTI] [-f defaultvolumes] [-s systemvolumes] [-n nbpname] [-c maxconnections] [-g guest] [-P pidfile] [-S port] [-L message] [-F configfile] [-U uams] [-m umask] afpd -v | -V | -h DESCRIPTION
afpd provides an Apple Filing Protocol (AFP) interface to the Unix file system. It is normally started at boot time from /etc/rc. /etc/netatalk/afpd.conf is the configuration file used by afpd to determine the behavior and configuration of the different virtual file servers that it provides. The list of volumes offered to the user is generated from /etc/netatalk/AppleVolumes.system and one of /etc/netatalk/AppleVolumes.default, ~/AppleVolumes, ~/.AppleVolumes, ~/applevolumes, or ~/.applevolumes. The AppleVolumes files is used to specify volumes to mount and file name extension mappings. OPTIONS
-d Specifies that the daemon should not fork. If netatalk has been configured with --enable-debug1, a trace of all AFP commands will be written to stdout. -p Prevents clients from saving their passwords. (Equivalent to -nosavepasswd in afpd.conf.) -t Allows clients to change their passwords. (Equivalent to -setpasswd in afpd.conf.) -D Use DDP (AppleTalk) as transport protocol. (Equivalent to -ddp in afpd.cond.) -T Use TCP/IP as transport protocol. (Equivalent to -tcp in afpd.conf.) -v Print version information and exit. -V Print verbose information and exit. -h Print help and exit. -I Use a platform specific icon. (Equivalent to -icon in afpd.conf.) (Recent Mac OS don't display it.) -f defaultvolumes Specifies that defaultvolumes should be read for a list of default volumes to offer, instead of /etc/netatalk/AppleVolumes.default. -s systemvolumes Specifies that systemvolumes should be read for a list of volume that all users will be offered, instead of /etc/netatalk/AppleVolumes.system. -u Read the user's AppleVolumes file first. This option causes volume names in the user's AppleVolumes file to override volume names in the system's AppleVolumes file. The default is to read the system AppleVolumes file first. Note that this option doesn't effect the precendence of filename extension mappings: the user's AppleVolumes file always has precedence. -n nbpname Specifies that nbpname should be used for NBP registration, instead of the first component of the hostname in the local zone. -c maxconnections Specifies the maximum number of connections to allow for this afpd. The default is 20. -g guest Specifies the name of the guest account. The default is 'nobody'. -P pidfile Specifies the file in which afpd stores its process id. -S port Specifies the port to register with when doing AFPoverTCP. Defaults to 548. (Equivalent to -port in afpd.conf.) -L message Specifies the login message that will be sent to clients. (Equivalent to -loginmsg in afpd.conf.) -F configfile Specifies the configuration file to use. (Defaults to /etc/netatalk/netatalk/afpd.conf.) -U uams Comma-separated list of UAMs to use for the authentication process. (Equivalent to -uamlist in afpd.conf.) -m umask Use this umask for the creation of folders in Netatalk. SIGNALS
To shut down a user's afpd process it is recommended that SIGKILL (-9) NOT be used, except as a last resort, as this may leave the CNID database in an inconsistent state. The safe way to terminate an afpd is to send it a SIGTERM (-15) signal and wait for it to die on its own. SIGTERM and SIGUSR1 signals that are sent to the main afpd process are propagated to the children, so all will be affected. SIGTERM Clean exit. Propagates from master to childs. SIGQUIT Send this to the master afpd, it will exit leaving all children running! Can be used to implement AFP service without downtime. SIGHUP Sending a SIGHUP to afpd will cause it to reload its configuration files. SIGINT Sending a SIGINT to a child afpd enables max_debug logging for this process. The log is sent to fhe file /tmp/afpd.PID.XXXXXX. Sending another SIGINT will revert to the original log settings. SIGUSR1 The afpd process will send the message "The server is going down for maintenance." to the client and shut itself down in 5 minutes. New connections are not allowed. If this is sent to a child afpd, the other children are not affected. However, the main process will still exit, disabling all new connections. SIGUSR2 The afpd process will look in the message directory configured at build time for a file named message.pid. For each one found, a the contents will be sent as a message to the associated AFP client. The file is removed after the message is sent. This should only be sent to a child afpd. FILES
/etc/netatalk/afpd.conf configuration file used by afpd /etc/netatalk/AppleVolumes.default list of default volumes to mount /etc/netatalk/AppleVolumes.system list of volumes to offer all users ~/AppleVolumes, ~/.AppleVolumes, ~/applevolumes, ~/.applevolumes user's list of volumes to mount /etc/netatalk/afp_signature.conf list of server signature /etc/netatalk/afp_voluuid.conf list of UUID for Time Machine volume /etc/netatalk/afp_ldap.conf configuration file for LDAP and ACL support /etc/netatalk/msg/message.pid contains messages to be sent to users. BUGS
SEE ALSO
hosts_access(5), afpd.conf(5), AppleVolumes.default(5), afp_signature.conf(5), afp_voluuid.conf(5), afp_ldap.conf(5), dbd(1). Netatalk 2.2 08 Mar 2011 AFPD(8)
All times are GMT -4. The time now is 06:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy