How to copy file from Windows to AIX using SCP?


 
Thread Tools Search this Thread
Operating Systems AIX How to copy file from Windows to AIX using SCP?
# 1  
Old 05-20-2015
How to copy file from Windows to AIX using SCP?

Hi

I'd like to copy file ( or directory ) from a window server to an unix server using scp command, something like this

Code:
scp -rp admin@10.0.99.99:C:\Documents and Settings\abc.txt   /home/oracle/abc.txt

I tried testing something like command above but nothing worked.
Somebody help !! Thank you
# 2  
Old 05-20-2015
For a start, you would need to quote the path that has spaces in it, but generally speaking just saying "it does not work" is not very helpful.

What does not work? How does it not work? What error do you get?
This User Gave Thanks to Scott For This Post:
# 3  
Old 05-20-2015
Quote:
Originally Posted by Scott
For a start, you would need to quote the path that has spaces in it, but generally speaking just saying "it does not work" is not very helpful.

What does not work? How does it not work? What error do you get?
Yeah, I missed it but it's not the point. I'll show you an example.

I executed this command from an aix server
Code:
scp -v -rp admin@10.0.95.29:C:\temp\abc.txt   /home/oracle/abc.txt

and this's the output
Code:
id_MISAP1:/home]scp -v -rp admin@10.0.95.29:C:\temp\abc.txt /home/oracle/abc.txt
Executing: program /usr//bin/ssh host 10.0.95.29, user admin, command scp -v -r -p -f -- C:tempabc.txt
OpenSSH_5.4p1, OpenSSL 0.9.8m 25 Feb 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so):   0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).
        0509-026 System error: A file or directory in the path name does not exist.

debug1: Error loading Kerberos, disabling Kerberos auth.
debug1: Connecting to 10.0.95.29 [10.0.95.29] port 22.

After about 1 minute

Code:
debug1: connect to address 10.0.95.29 port 22: Connection timed out
ssh: connect to host 10.0.95.29 port 22: Connection timed out

# 4  
Old 05-20-2015
It might suggest that there is a firewall preventing you connecting.

Can you simply connect with ssh to test this? If that fails to connect with similar message & time, check with the network people if port 22 is open for you.



Robin
This User Gave Thanks to rbatte1 For This Post:
# 5  
Old 05-25-2015
May be the port is the problem. I'll check it . Thanks guys
# 6  
Old 05-27-2015
Quote:
Originally Posted by bobochacha29
Code:
id_MISAP1:/home]scp -v -rp admin@10.0.95.29:C:\temp\abc.txt /home/oracle/abc.txt
Executing: program /usr//bin/ssh host 10.0.95.29, user admin, command scp -v -r -p -f -- C:tempabc.txt
OpenSSH_5.4p1, OpenSSL 0.9.8m 25 Feb 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so):   0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).
        0509-026 System error: A file or directory in the path name does not exist.

debug1: Error loading Kerberos, disabling Kerberos auth.
debug1: Connecting to 10.0.95.29 [10.0.95.29] port 22.

After about 1 minute

Code:
debug1: connect to address 10.0.95.29 port 22: Connection timed out
ssh: connect to host 10.0.95.29 port 22: Connection timed out

I have marked the part which is IMHO the culprit. Could you please post the result of an "lsuser <username>" where "<username>" is the name of the user on the AIX side?

My suspicion is that you are using either a generic Kerberos domain (which is unusual these days) for user authentication or authenticate against the AD (which basically is a kerberized, dumbed-down-to M$-standards LDAP domain) but you do not have the Kerberos client installed or configured.

If i am correct the commands output should contain "system=KRB5files". In this case you will have to install the Kerberos software, which is in separate packages which are not part of the standard install: "krb5.client.rte" (client software) and "krb5.lic" (license).

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 7  
Old 05-28-2015
Could also simply be that the backslashes in the command are not escaped.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies

2. AIX

ASK | How to scp command AIX to windows

Hii Master, im will copy file/directory aix to windows with scp commandline, but some error below: Note: If ping to 172.16.0.250 reply and was connected, and was open/allow port 22 at windows server inbound In aix finish installing ssh in windows finish installing winscp my... (3 Replies)
Discussion started by: williamen
3 Replies

3. Windows & DOS: Issues & Discussions

scp to windows and delete files from windows

Hi Team, I Have list file in Unix server, I need to copy files from Windows to Unix for the list of files given in Unix list file. after coping files to unix, I need to delete the files from Windows. i used SCP and moved files from windows to unix based on list file is done and working.... (1 Reply)
Discussion started by: spradeep86
1 Replies

4. UNIX for Dummies Questions & Answers

Use screen command in AIX to scp file to other server

Hello, Please assist me in using screen command in AIX to scp file to other server Best regards, Vishal (10 Replies)
Discussion started by: Vishal_dba
10 Replies

5. UNIX for Dummies Questions & Answers

scp to get a file from windows desktop to UNIX server

Hi, I want to use scp to upload file to my unix server. i am using this: scp D:\testr.txt unixuser@unixhost:/path it returns an error: ssh: D: host/servname not known i am not sure how to tell path of my D drive in the command and how will command understand it has to pick from my... (5 Replies)
Discussion started by: Kohli
5 Replies

6. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

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

8. Shell Programming and Scripting

shellscript on AIX to download file from windows to AIX

i require the shell script that is running on the AIX to download a file from Windows desktop to the location where the shell script resides onthe AIX system. I have used the below code: but it throwing the error as below.please help me at the earliest to resolve the issue. error message :... (1 Reply)
Discussion started by: kvkc
1 Replies

9. UNIX for Advanced & Expert Users

Using SCP command in IBM AIX to download file from remote to local system

Hi, When i run the code in solaris unix machine, the file from remote server is getting downloaded. but when i use the same code in IBM AIX remote machine, it is not running. It is saying "Erro during scp transfer." Below is the code. Please give some resolution. SCPClient client = new... (1 Reply)
Discussion started by: gravi2020
1 Replies

10. UNIX for Dummies Questions & Answers

scp from aix to windows (cygwin) fails

Hi... my problem is that I want to copy one html-file to my windows-box webserver using scp. so far no problem but the destination is in /cygdrive/c/program files/dest and as we all know unix doesnt like spaces in paths. scp html.file user@windowsbox:/cygdrive/c/program... (5 Replies)
Discussion started by: cypher82
5 Replies
Login or Register to Ask a Question