I need to transfer multiple files using scp between two solaris machines. I could not use pattern since they match with other files in the same directory.
I tried the below command, it does not copy any files.
cd <directory with files and list file> # or list file with absolute paths from anywhere.
scp $(cat list) user@remoteserver:/path/
Or create a regular expression which will match the files need from the first example [abcd].ksh
Also, you might want to use more modern shell such as ksh.
19/01/2016 16:14:25:741 SftpAppLibSft/secsh_sft.c:3860/ssh_sft_get_conn_params: Connection id: #4, Destination: user@machine#22, Protocol version: secsh2, Cipher spec: aes128-cbc+hmac-sha1, Auth method: keyboard-interactive, Compression: none, Exclusive: yes
19/01/2016 16:14:26:696 SftpAppLibSft/secsh_sft.c:4179/ssh_sft_open_internal: Server SFT protocol version is 3.
19/01/2016 16:14:26:725 SftpAppLibSft/secsh_sft.c:3623/ssh_sft_server_type_probe: Server system type is POSIX.
19/01/2016 16:14:26:819 SftpAppLibSft/secsh_sft.c:3731/ssh_sft_server_streaming_probe_magic: Server supports EXTENDED streaming.
19/01/2016 16:14:27:081 SftpScpG3/scpg3.c:186/scp_exit: Exit code: 6
@Peasant: I could not do the other way since only functional ID(FID) has access to write to the folder, which I could not become from the remote server.
Ok,
Second option work if your local shell is not sh or ksh88 (and maybe ksh93 ???).
Syntax {a.ksh,b.ksh,...} is an option of many shell as bash.
For third option, have you /bin/bash on your remote machine ?
(I try this option on remote machine solaris with /bin/bash and it works fine).
Regards.