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 AIX boxes version 6100-07-08-1339
Assume hostname for source server is AAA and hostname for destination server is BBB and the file I wanted to copy over is /home/ABC/test.sh
Command I used
I have entered correct password and the error appeared after the password.
Please help.
-- kwliew999
---------- Post updated at 11:16 AM ---------- Previous update was at 09:22 AM ----------
Additional info :
When I tried to use "root" to perform the scp, it works.
Is there anything to do with user profile which set my profile as "non-interactive shell"??
Thanks.
Last edited by Scott; 01-29-2014 at 11:32 PM..
Reason: Code tags, please...
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)
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... (2 Replies)
I'm using cygwin scp to copy a file down from a AIX server to my laptop.
I've got he script working from the command line. The file I'm copying is Processed.Apr21 and I'm copying it to /event_transfer folder on my laptop.
scp username@149.131.224.104:/var/Tivoli/logs/Events/processed.Apr21... (3 Replies)
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)
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)
Hi,
How to use ftp/scp command with password containing @ symbol.
Ex: ftp xyz:xyz@sun@11.211.111.11:/export/backups/
Exception I got: unknown host or invalid literal address
Note: I dont want to change the password.
Regards,
Vinodh' Kumar (5 Replies)
Hi,
I am trying to do scp using the following script:
#!/usr/local/bin/bash
BUILDDATE=20120220
for line in `cat arch_host_plat_src_dest`
do
src=`echo $line | cut -d: -f4`
dest=`echo $line | cut -d: -f5`
echo scp -p /builds/${BUILDDATE}/Integration/$src ... (1 Reply)
Hi,
I am trying to copy files from one server to other using the below code.
scp -B -p user@remoteserver:/tmp/abc.txt /landing/files
The above command is failing with error
You're not allowed to run 'scp -p -f /tmp/abc.txt '
When I am using scp -B -p , why am I getting error msg as scp... (2 Replies)
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)