scp Unable to authenticate. Communication error.


 
Thread Tools Search this Thread
Operating Systems AIX scp Unable to authenticate. Communication error.
# 1  
Old 01-04-2008
scp Unable to authenticate. Communication error.

I'm having this issue on one of my AIX box, whenever I try to do scp it asks for user, domain and password and just errors out, scp works fine on other AIX servers.
I already checked the permissions of .sshd and its files, stopped and restarted sshd subsystem.
Also it never asks for user, domain and password on other servers.

Any help would really be appreciated.

####->> ssh -v
OpenSSH_4.3p2, OpenSSL 0.9.7l 28 Sep 2006
AIX version == 5200-10-02-0730

####->> scp -vp /tmp/test venus:/tmp/test.oprx
user: root
domain: xxx.com
password:
Unable to authenticate. Communication error.
# 2  
Old 01-04-2008
Is root allowed to use scp/ssh on this box? Check /etc/ssh/sshd_config
# 3  
Old 01-05-2008
Hi Friend Smilie

May be following 3 reson

1) If you are trying to do ssh/scp/sftp from server 1 to server 2 through root login then you need to changed variable in /etc/ssh/sshd_config file i.e. Permitrootlogin=yes
and startsrc -s sshd on server 2
2) password of user on server 2 has got expired for normal user
3) account of user on server 2 has got locked due to some reson


Thanks
Pravin Landge Smilie
# 4  
Old 01-05-2008
scp Unable to authenticate. Communication error

Yes, root is allowed to ssh/scp/sftp, I can ssh or sftp but no scp

All except the below 2 options are commented out in /etc/ssh/sshd_config

#cat sshd_config | grep PermitRoot
PermitRootLogin yes
# override default of no subsystems
Subsystem sftp /usr/sbin/sftp-server


####->> ssh root@venus date
root@venus's password:
Sat Jan 5 15:40:41 CST 2008

####->> sftp root@venus
Connecting to venus...
root@venus's password:
sftp>
# 5  
Old 01-05-2008
Quote:
Originally Posted by barkath
Yes, root is allowed to ssh/scp/sftp, I can ssh or sftp but no scp
If you do a bare login, is scp on the path for root? There are a couple of different scp protocols and scp uses a copy of scp run by ssh at the far end. If it can't find it, it can't run it.
# 6  
Old 01-05-2008
scp Unable to authenticate. Communication error.

Porter,
Thanks for ur promt response.
scp is on the path for root, just in case, I even went ahead and added the path /usr/bin/scp and also did tried using various protocols like 1,2,4,6 but still the same thing.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to authenticate in LDAP RHEL 6.0

Hi there, I run a lab of around 20 systems. I have setup my LDAP server and LDAP clients. But when I try to log on to other cleint machines from a client machine, the error shows that "Permission Denied". On the other hand, if I login onto server from any client machine, the communication takes... (1 Reply)
Discussion started by: Ankur Goyal
1 Replies

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

3. AIX

Able to scp/ssh to AIX 6.1 machine, unable to sftp to it

Hello, I am trying to figure out why I cannot sftp onto our aix6.1 machine. I can ssh/scp onto it, and sftp outbound seems to work properly, but I can't sftp onto it. # sftp aix61 Connecting to aix61... root@aix61's password: Connection closed # This machine appears to have the pware... (2 Replies)
Discussion started by: bstring
2 Replies

4. Red Hat

Unable to authenticate using NAGIOS on redhat

Hi, I have installed Nagios on Redhat 5 using rpms, it was successully installed and I have started the nagios and httpd service. While login on browser, using nagios userid and password, I am unable to login I have installed nagios and nagios-plugin rpms both. I have used the command... (0 Replies)
Discussion started by: manoj.solaris
0 Replies

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

6. UNIX for Dummies Questions & Answers

Unable to copy file using SCP (Input/output & Permission denied error)

Hi, I am facing issue while using scp. Source & target machines are Linux & HP-UX respectively. On target machine, if I fire the following command, I get error: Now if I try scp on another file, which is on the same source machine, it works fine. All directories and subdirectories... (2 Replies)
Discussion started by: Technext
2 Replies

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

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

9. UNIX for Dummies Questions & Answers

Unable to scp/sftp between two servers

I have four servers that for all intents and purposes are the same (I have the same profile on all four), North, South, Brooklyn & Queens. I have a script that scp's a file from Queens to brooklyn, and it runs just fine. I tried to replicate the script on South, to transfer a file to North, and... (1 Reply)
Discussion started by: DeCoTwc
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