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

> cd /home/ABC
> scp test.sh BBB:/home/ABC

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.

chsh changes the shell. it might be set to /bin/false or something that doesn't allow login.

have you tried to just ssh into that server?

try using full command:

scp test.sh user@host:/home/ABC/

review the /etc/ssh/sshd_config and make sure there is nothing blocking you. as neutronscott mentioned the shell could be the problem as well.

you may want to try debug mode:

scp -vvv <file> <user>@<host>:/home/abc/

and you can see where the problem is.