scp problem


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users scp problem
# 1  
Old 02-02-2007
Lightbulb FIND solution: scp problem

I have some problems using scp between a server Sun Solaris and a SecurePlatform Checkpoint.
If I try to copy a simple file txt from the server Sun Solaris to the SecurePlatform, I have problems!!!!!!...

server:/export/home/appmgt# scp 1.txt admin2@fwtest:~
lost connection


... if I try to connect me from the same server Sun Solaris to the same SecurePlatform with a public key, I have no problem!!!...

server:/export/home/appmgt# ssh -l admin2 fwtest
Last login: Fri Feb 2 16:06:36 2007 from
[Expert@fwtest]#


... If a try to use scp to move some file from the same server Sun Solaris to another server or another platform, I have no problem...

... If a try to use scp to move some file from another server Sun Solaris to the same SecurePlatform, I have no problem...

SOMEONE CAN HELP ME! Smilie Smilie Smilie Smilie Smilie
Thanks in advance.

Last edited by Minguccio75; 02-05-2007 at 08:37 AM..
# 2  
Old 02-04-2007
im not sure, have you tried:


scp 1.txt admin2@fwtest:/path/to/dir/. ?

or

scp 1.txt admin2@twtest:~admin2/.
# 3  
Old 02-05-2007
It doesn't works...
# 4  
Old 02-05-2007
I attach a the first command with verbose option:

scp -v 1.txt admin2@fwtest:~
Executing: program /usr/bin/ssh host fwtest, user admin2, command scp -v -t ~
Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to fwtest [xxxxxxxxxxxx] port 22.
debug1: Connection established.
debug1: identity file /export/home/appmgt/.ssh/identity type -1
debug1: identity file /export/home/appmgt/.ssh/id_rsa type 1
debug1: identity file /export/home/appmgt/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.6.1p2
debug1: match: OpenSSH_3.6.1p2 pat OpenSSH_3.6*,OpenSSH_3.7*,OpenSSH_3.8*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-Sun_SSH_1.1
debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible
Unknown code 0
)
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: Peer sent proposed langtags, ctos:
debug1: Peer sent proposed langtags, stoc:
debug1: We proposed langtags, ctos: en-US
debug1: We proposed langtags, stoc: en-US
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 118/256
debug1: bits set: 1625/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'fwtest' is known and matches the RSA host key.
debug1: Found key in /export/home/appmgt/.ssh/known_hosts:2
debug1: bits set: 1638/3191
debug1: ssh_rsa_verify: signature correct
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /export/home/appmgt/.ssh/identity
debug1: Trying public key: /export/home/appmgt/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 149 lastkey 6d9a0 hint 1
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey)
debug1: fd 6 setting O_NONBLOCK
debug1: fd 7 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: channel request 0: env
debug1: channel request 0: env
debug1: channel request 0: env
debug1: channel request 0: env
debug1: channel request 0: env
debug1: channel request 0: env
debug1: channel request 0: env
debug1: Sending command: scp -v -t ~
debug1: channel request 0: exec
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
debug1: channel 0: obuf empty
debug1: channel 0: close_write
debug1: channel 0: output drain -> closed
debug1: channel 0: rcvd close
debug1: channel 0: close_read
debug1: channel 0: input open -> closed
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1
lost connection
# 5  
Old 02-05-2007
SOLUTION:
On the checkpoint firewall:
echo admin2 >> /etc/scpusers
# 6  
Old 09-18-2007
scp lost connection for 10gb file size

Hi ,
Im running scp between 2 hosts.
There ISNT firewall bewteen those two hosts.
Im trying to transfer 10gb oracle database file.
Can one help with this problem ?
ThanksSmilie

[xena] /home/dba >ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4292870144
stack(kbytes) 344064
memory(kbytes) unlimited
coredump(blocks) 4194303

[xena] /home/dba >exit
logout dba

[xenaSmilieracle@qa2] /software/oracle/PATCHES >scp -v /qa2/oracalls_05-06_data1/Q306_calls_ts_stl_01.dbf oracle@romeo:/prdhst/oracalls2006_da..._ts_stl_01.dbf
Executing: program /opt/ssh/bin/ssh host romeo, user oracle, command scp -v -t /prdhst/oracalls2006_data3/Q306_calls_ts_stl_01.dbf
OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
HP-UX Secure Shell-A.04.30.007, HP-UX Secure Shell version
debug1: Reading configuration data /software/oracle/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to romeo [172.22.13.16] port 22.
debug1: Connection established.
debug1: identity file /software/oracle/.ssh/id_rsa type 1
debug1: identity file /software/oracle/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2-hpn
debug1: match: OpenSSH_4.3p2-hpn pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3p2-hpn
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'romeo' is known and matches the RSA host key.
debug1: Found key in /software/oracle/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /software/oracle/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -t /prdhst/oracalls2006_data3/Q306_calls_ts_stl_01.dbf
Sending file modes: C0640 1896878080 Q306_calls_ts_stl_01.dbf
Sink: C0640 1896878080 Q306_calls_ts_stl_01.dbf
Q306_calls_ts_stl_01.dbf 18% 1810MB 7.4MB/s 18:27 ETAdebug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 261.5 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1
lost connection
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Scp, problem, .bashrc

I have a problem with SCP, trying to use this solution in .bashrc: scp printed an error message: "Write failed flushing stdout buffer. write stdout: Broken pipe." or "packet too long". Your shell startup file (e.g., ~/.cshrc, ~/.bashrc), which is run when scp connects, might be writing a... (3 Replies)
Discussion started by: orange47
3 Replies

2. Shell Programming and Scripting

scp command problem

I am trying to copy file . On the remote host I have dir structure as ... /opt/product/11.2.0/ and underneath 11.2.0 I have db and db112 dirs.. and there are sub dirs underneath db and db112.. scp xyx:/tmp/1.sh /opt/oracle/11.2.0/*/hs/admin/1.sh the idea here is copy 1.sh to both db... (2 Replies)
Discussion started by: talashil
2 Replies

3. Shell Programming and Scripting

Trying to copy Using scp facing problem

source file is located in (elk.some.com) /export/elk2/vp141p/Somedir/dist/current/Filename.ear destination machine(191.hydc.xxx.com) /export/home/vp141p/ARCHIVE scp -p vp141p@hstst191.hydc.sbc.com:/export/elk2/vp141p/PM_Build_SBS/Build_PVT_SBS/dist/current/Filename.ear . The above code is... (5 Replies)
Discussion started by: vishwakar
5 Replies

4. UNIX for Dummies Questions & Answers

Problem with SCP command

hi, I am successfully running following command from command prompt $ scp oracle@172.16.0.11:/back/crmemo.csv /sales/ but when i am running the same command from a script it copying '?' in sales (destination) folder. Following is the script #!/bin/sh scp... (14 Replies)
Discussion started by: RIAZ
14 Replies

5. UNIX for Advanced & Expert Users

Problem with ssh and scp

Hi there, I'm working with two linux servers and if I use ssh to connect from 1 to 2 everything works fine ( ..as usual:rolleyes:), while if I try to connect via ssh or to copy files through scp (as I usually do...) from 2 to 1, after the password I get this message: Connection closed by... (6 Replies)
Discussion started by: Giordano Bruno
6 Replies

6. Shell Programming and Scripting

scp problem in crontab

Hello there: I hope you can help me. I have this problem: I have the next script: #!/bin/bash #copy all backuped files to main server scp /root/opennms_etc_$fecha.tar.gz opennms2@10.245.10.196: scp /root/opennms_all_$fecha.sql opennms2@10.245.10.196: scp /root/pg_hba.conf ... (2 Replies)
Discussion started by: bobbasystem
2 Replies

7. Shell Programming and Scripting

Problem with SCP parellel processing

Hi All, I am trying to take Bulk Log files from around 24 Remote servers using my shell script. I am using SCP for this. I need to take log files every 15 min, so I am thinking about the parallel processing mechanism in UNIX.The 24 remote machines username,servername reading from properties... (8 Replies)
Discussion started by: scorpio
8 Replies

8. UNIX for Dummies Questions & Answers

problem with SCP

Hi, I want to copy a file from one system to other i done a SCP but it showing error as below .. Can we do it by SCP ? Is it possible ?.. What is the below mean ?. sys1@sys2's password: scp: .: not a regular file Thanks, Arun (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

9. UNIX for Advanced & Expert Users

scp problem

Hi, I have problem using scp in an AIX machine, where I need to use full path to scp from /dirA but i dont have to from /dirB of the same machine. Below are some details & scp -v output (truncated). I've checked the permission & settings of both dir/FS are the same. Please help. scenario scp... (2 Replies)
Discussion started by: juliehussin
2 Replies

10. UNIX for Advanced & Expert Users

scp problem

I am using scp to get files from a Windows systemr to a Unix system. The ssh server is on Windows. The problem is that the file permissions for files that come from Windows are 700. Can any one help out with how I can set permissions to anything else? (6 Replies)
Discussion started by: blowtorch
6 Replies
Login or Register to Ask a Question