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! :confused: :confused: :confused: :confused: :confused:
Thanks in advance.

im not sure, have you tried:

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

or

scp 1.txt admin2@twtest:~admin2/.

It doesn't works...

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

SOLUTION:
On the checkpoint firewall:
echo admin2 >> /etc/scpusers

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 ?
Thanks:confused:

[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

[xena:oracle@qa2] /software/oracle/PATCHES >scp -v /qa2/oracalls_05-06_data1/Q306_calls_ts_stl_01.dbf oracle@romeo:/prdhst/oracalls2006\_data3/Q306\_calls\_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