scp conections refused


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers scp conections refused
# 1  
Old 05-07-2013
IBM scp conections refused

hi guys,

I use command scp conections refuse.

I will copy file ganteng.txt to host 172.16.x.x


Code:
# scp ganteng.txt -p 9060 amin@172.16.x.x:/root 
ssh: connect to host 172.16.x.x port 22: Connection refused
lost connection


If I : ssh -p 9060 amin@172.16.x.x

conected insert your password.


I use OS Aix 6.1

Need your help guys..

best regard

Last edited by Scott; 05-07-2013 at 06:14 AM.. Reason: Code tags
# 2  
Old 05-07-2013
scp uses -P upper case, ssh -p lower case to specify the port

just to confuse users I guess Smilie
# 3  
Old 05-07-2013
Quote:
Originally Posted by funksen
scp uses -P upper case, ssh -p lower case to specify the port

just to confuse users I guess Smilie
funksen,

I use your command -p or -P ( not effect)
# 4  
Old 05-07-2013
sshd is listening on port 9096 in your case

your error message says:

Quote:
ssh: connect to host 172.16.x.x port 22: Connection refused
you see scp is trying to connect to port 22 because of your wrong syntax


it's not just the -p, I would also say the order of your arguments and options is wrong

try:

Code:
scp -P 9060 ganteng.txt amin@172.16.x.x:/root

# 5  
Old 05-08-2013
Quote:
Originally Posted by funksen
sshd is listening on port 9096 in your case

your error message says:



you see scp is trying to connect to port 22 because of your wrong syntax


it's not just the -p, I would also say the order of your arguments and options is wrong

try:
Funksen..

I try u command..
Error this..

Code:
# scp -P 9060 XXX.SAR amin@172.16.x.x:/root
amin@172.16.x.x's password: 
Could not chdir to home directory /home/amin: A parameter must be a directory.
scp: /root: Permission denied

for your informations

Last edited by Scott; 05-08-2013 at 02:52 AM.. Reason: Please use code tags
# 6  
Old 05-08-2013
I'm not quite sure why you're hiding part of a private IP address, but... Smilie

User amin does not have access to root's "home" directory, so why are you trying to copy the file there?

scp the file as the root user, or put the file somewhere amin has permission to write to.

Also, there's nothing specifically AIX-related here, so I have moved this thread from the AIX forum.
# 7  
Old 05-08-2013
Quote:
Originally Posted by Scott
I'm not quite sure why you're hiding part of a private IP address, but... Smilie

User amin does not have access to root's "home" directory, so why are you trying to copy the file there?

scp the file as the root user, or put the file somewhere amin has permission to write to.

Also, there's nothing specifically AIX-related here, so I have moved this thread from the AIX forum.
because maybe config ssh deny root login?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP connection refused

Hi I am trying to execute a shell script which is in unix server gs1. The script is below which basically connects to another unix server q15 and tries to get a file using FTP . But i get error as "ftp: connect: Connection refused Not connected. Not connected." Please help with if the below... (8 Replies)
Discussion started by: samrat dutta
8 Replies

2. Debian

ftp connection refused

I have two computers running Debian 6.0 and one running Solaris 2.6 on a private network. The Debian computers can ftp to the Solaris computer but if a Debian computer is the destination the ftp connection is refused. I assume this is some security feature of Debian. What can I do to allow... (2 Replies)
Discussion started by: snorkack59
2 Replies

3. UNIX for Advanced & Expert Users

ftp connection refused

Hi- While trying ftp from AIX to Windows im getting below error. Can anyone share ur views on this topic. root@AB101# ftp -n 10.192.168.68 ftp: connect: A remote host refused an attempted connect operation. ftp> Thanks. (3 Replies)
Discussion started by: yanis
3 Replies

4. UNIX and Linux Applications

PSQLException: Connection refused

I dont' what happened with my servers (test servers only) but I just noticed that suddenly I cannot up the domain anymore (Sun Java System Application Server 9.1_01). a. server.log org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the... (1 Reply)
Discussion started by: lhareigh890
1 Replies

5. AIX

ping OK - telnet refused

Hi, After a crash of our older AIX server it happend as it is in the title: ping is ok, but telnet: What it can be this strange thing? Franci (2 Replies)
Discussion started by: frajer
2 Replies

6. Programming

echo: Connection refused

OS : Solaris sparc In c program After socket created when I do Connect() it results "Connection refused", but the system is online and I am able to do telnet, ping everything, but it says connection refused. What would need to correct ? (6 Replies)
Discussion started by: satish@123
6 Replies

7. IP Networking

Connection refused

Hi there, Anything will help. I have running server on computer and want to connect from some clients. Server: memset(&hints, 0, sizeof(hints)); hints.ai_family = domain; hints.ai_socktype = SOCK_STREAM; error = getaddrinfo("localhost", "8300", &hints, &res0); if (error) { ... (1 Reply)
Discussion started by: Dudu1984
1 Replies

8. SCO

Blocking ports and reseting conections

Hi folks! We have SCO Open System V 5.0.5 here. When I type "netstat -n" I found a line mentioning a conection at the port 1025, as follows: tcp 0 0 quartzo.1025 200-203-8-90.csl.aas ESTABLISHED Here we use only conections thru ports 22,23 and 25. I would like to... (0 Replies)
Discussion started by: Marcio Moraes
0 Replies

9. SCO

telnet connection refused

I installed Openserver 5.0.7 and I cannot telnet to the localhost and I can't telnet from my old SCO 3.2.42 to the new SCO machine but I can ping the new machine and it will telnet to the old machine. (2 Replies)
Discussion started by: printrick
2 Replies

10. UNIX for Dummies Questions & Answers

No more telnet conections

Help. my trouble... telnetd: All network ports in use. /etc/inetd.conf telnet stream tcp nowait NOLUID /etc/telnetd telnetd only 32 telnet permit SCO UNIX 3.2.5.0.5 :confused: (2 Replies)
Discussion started by: RoMaGo
2 Replies
Login or Register to Ask a Question