Hi,
I got a unix script which copies a file from my AIX machine to a file server using SCP command. I am calling this script 3 times in my process after a time interval say 5mins. My issue here is like most of the time its not sending the file at the first time run while other 2 will work fine.... (10 Replies)
Hi,
I use WinMe, want to access, remotely, X-windows of my FreeBSD6.2 machine using the Cigwin from my windows machine as a normal user.
However, I can login (through ssh and Telnet) to my FeeBSD machine as root and/or 'su' from some users grouped to the 'wheel' group.
I'm still new to... (1 Reply)
Hi all, I am just enjoying my first experience with UNIX type stuff but I am completely stumped with syntax etc. I have installed OpenSSH on my windows machine which is a working nicley and I can gain access using putty. I am however trying to set up public key authentication and turn off passwords... (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)
I'm using cygwin to make some scripts,but I have the following problem.
If I create a simple script like this one:
if
echo "Error"
exit 1
fi
echo "`expr $1 + $2`"
I obtain line 6: syntax error:unexpected end of file.
If I create the same script with cat>filename.txt and execute it... (4 Replies)
Hi All,
I recently upgraded to windows 7 and am therefore reinstalling cygwin/x11 after a long time. On XP I would start xterm from the startxwin.bat file. I am experiencing trouble starting with the startxwin executable which is the new recommended startup method as well as afew other... (2 Replies)
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)
Hi
I'd like to copy file ( or directory ) from a window server to an unix server using scp command, something like this
scp -rp admin@10.0.99.99:C:\Documents and Settings\abc.txt /home/oracle/abc.txtI tried testing something like command above but nothing worked.
Somebody help !! Thank you (7 Replies)
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
LEARN ABOUT OPENSOLARIS
scp
scp(1) User Commands scp(1)NAME
scp - secure copy (remote file copy program)
SYNOPSIS
scp [-pqrvBC46] [-F ssh_config] [-S program] [-P port]
[-c cipher] [-i identity_file] [-o ssh_option]
[ [user@]host1:]file1 []... [ [user@]host2:]file2
DESCRIPTION
The scp utility copies files between hosts on a network. It uses ssh(1) for data transfer, and uses the same authentication and provides
the same security as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if they are needed for authentication.
Any file name may contain a host and user specification to indicate that the file is to be copied to/from that host. Copies between two
remote hosts are permitted.
OPTIONS
The following options are supported:
-4 Forces scp to use IPv4 addresses only.
-6 Forces scp to use IPv6 addresses only.
-B Selects batch mode. (Prevents asking for passwords or passphrases.)
-c cipher Selects the cipher to use for encrypting the data transfer. This option is directly passed to ssh(1).
-C Compression enable. Passes the -C flag to ssh(1) to enable compression.
-F ssh_config Specifies an alternative per-user configuration file for ssh(1.).
-i identity_file Selects the file from which the identity (private key) for RSA authentication is read. This option is directly passed
to ssh(1).
-o ssh_option The given option is directly passed to ssh(1).
-p Preserves modification times, access times, and modes from the original file.
-P port Specifies the port to connect to on the remote host. Notice that this option is written with a capital `P', because -p
is already reserved for preserving the times and modes of the file in rcp(1).
-q Disables the progress meter.
-r Recursively copies entire directories.
-S program Specifies the name of the program to use for the encrypted connection. The program must understand ssh(1) options.
-v Verbose mode. Causes scp and ssh(1) to print debugging messages about their progress. This is helpful in debugging con-
nection, authentication, and configuration problems.
OPERANDS
The following operands are supported:
host1, host2,... The name(s) of the host from or to which the file is to be copied.
file1, file2,... The file(s) to be copied.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
1 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO rcp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), sshd(1M), ssh_config(4), attributes(5)NOTES
Generally, use of scp with password or keyboard-interactive authentication method and two remote hosts does not work. It does work with
either the pubkey, hostbased or gssapi-keyex authentication method. For the pubkey authentication method, either private keys not pro-
tected by a passphrase, or an explicit ssh agent forwarding have to be used. The gssapi-keyex authentication method works with the ker-
beros_v5 GSS-API mechanism, but only if the GSSAPIDelegateCredentials option is enabled.
SunOS 5.11 22 Jun 2007 scp(1)