1834361 Members
2606 Online
110066 Solutions
New Discussion

SCP Configuration

 
SOLVED
Go to solution
Kalin Evtimov
Regular Advisor

SCP Configuration

Hello!
I just noticed that scp-connection doesn't work any more on an HP-UX 11.23 IA64. SSH works. I wanted to check the user permissions , but I have no idea where does the config for scp live. Some patches were played yesterday and something changed, because this used to work before.

Can You help me (scp configuration)?

Thank you.
9 REPLIES 9
RAC_1
Honored Contributor
Solution

Re: SCP Configuration

what is the error message?
scp -vvv some_file some_server:/some_dstination/.
There is no substitute to HARDWORK
Kalin Evtimov
Regular Advisor

Re: SCP Configuration

I am on serv00

$ scp oramm.depot.gz oracle@servus:/tmp
oracle@servus's password:
Permission denied, please try again.
Kalin Evtimov
Regular Advisor

Re: SCP Configuration

Or the long version:

OpenSSH_3.7, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003
HP-UX_Secure_Shell-A.03.71.006.%ic71N, HP_UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to servus [101.49.22.144] port 22.
debug1: Connection established.
debug1: identity file /.ssh/id_rsa type 1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.1p1
debug1: match: OpenSSH_3.1p1 pat OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.7
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 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 'servus' is known and matches the RSA host key.
debug1: Found key in /.ssh/known_hosts:5
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: external-keyx,gssapi,publickey,password,keyboard-interactive
debug1: Next authentication method: gssapi
debug1:


debug1:


debug1:


debug1: Next authentication method: publickey
debug1: Offering public key: /.ssh/id_rsa
debug1: Authentications that can continue: external-keyx,gssapi,publickey,password,keyboard-interactive
debug1: Trying private key: /.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: external-keyx,gssapi,publickey,password,keyboard-interactive
debug1: Next authentication method: password
oracle@servus's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -t /tmp
debug1: client_input_channel_req: channel 0 rtype exit-signal 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 0.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
lost connection
RAC_1
Honored Contributor

Re: SCP Configuration

what are the perms on servus:/tmp
Can you put file somewhere else? Or you get the error for every command irrespective of desination?
There is no substitute to HARDWORK
Kalin Evtimov
Regular Advisor

Re: SCP Configuration

anyone can write in /tmp
but even if I take /home/oracle, i get the same error. And for all other locations too. Strange, because the authentification works.
RAC_1
Honored Contributor

Re: SCP Configuration

ssh -D 3 source_file dest_nation
There is no substitute to HARDWORK
Kalin Evtimov
Regular Advisor

Re: SCP Configuration

I am nut sure what I can achieve with -D? It is for port-forwarding. I get this

ssh: oramm.depot.gz: host nor service provided, or not known

Maybe I typed something wrong.
RAC_1
Honored Contributor

Re: SCP Configuration

It just increases the debug level. I am trying to understand the debug messages.
There is no substitute to HARDWORK
Patrice Le Guyader
Respected Contributor

Re: SCP Configuration

Hi calin,

Just an idea,look if you have only one version of ssh, it's like scp is running an old version of ssh command.

Hope this helps
Kenavo
Pat
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.