1752773 Members
5040 Online
108789 Solutions
New Discussion юеВ

Re: scp copying problem

 
SOLVED
Go to solution
HP-UX_Ali
Regular Advisor

Re: scp copying problem

Hi VINAY,

this is purely permission issue in destination side, Kindly check the ownership & permission of the destination folder.

From source point of view atleast you should have read access to copy to destination.

Thanks

irshad ali
Frequent Advisor

Re: scp copying problem

thanks a lot Atul and Anish

irshad
HP UNIX Professionals
Frequent Advisor

Re: scp copying problem

Tingle /Aneesh/atul

The /tmp/tcb is exixt and sored dir is also 777 permission
Owner of sorce and destination is root

drwxr-xr-x 2 root sys 96 May 12 10:03 tcb

------------------------------------------------------------------

Command i given is

(root@dmmcys)/tmp#scp -r work1 root@142.182.194.73:/tmp/tcb

142.182.194.73 - Destination Node

The root Password is not taking

THE PROGRAMS AND DATA STORED ON THIS SYSTEM ARE LICENSED TO OR ARE PRIVATE
PROPERTY OF THIS COMPANY AND ARE LAWFULLY AVAILABLE ONLY TO AUTHORIZED USERS
FOR APPROVED PURPOSES. UNAUTHORIZED ACCESS TO ANY PROGRAM OR DATA ON THIS
SYSTEM IN NOT PERMITTED, AND ANY UNAUTHORIZED ACCESS BEYOND THIS POINT MAY LEAD
TO PROSECUTION. THIS SYSTEM MAY BE MONITORED AT ANY TIME FOR OPERATIONAL
REASONS. THEREFORE, IF YOU ARE NOT AN AUTHORIZED USER, DO NOT ATTEMPT TO LOG
ON.

Password:
Password:
===========================================
When i do the FTP

ftp> mput work*
mput work1? y
200 PORT command successful.
553 tdpoerror.log: Permission denied.

Permission of the file
----------------------
(root@dm3cys)/#ll /tmp/work1
-rwx------ 1 root sys 132 Sep 8 2005 /tmp/work1
(root@dmmcys)/#whoami
root


Please give me the direction
atul2701
Frequent Advisor

Re: scp copying problem

hi

Change the permission of tcb dir on remote server & try.

chmod 777 /tmp/tcb.

atul
Atul Gupta
Tingli
Esteemed Contributor

Re: scp copying problem

Check the receive side file /opt/ssh/etc/ssh_config and look for entry PermitRootLogin. Make sure it is yes.
stephen peng
Valued Contributor

Re: scp copying problem

check for /opt/ssh/etc/ssh_config and see whether root login was permit for 142.117.84.97. would ssh 142.117.84.97 success?
HP UNIX Professionals
Frequent Advisor

Re: scp copying problem

Hi Trinle

In /opt/ssh/etc.ssh_config - There is no such entery "Permitrootlogom "

# Host *
# ForwardAgent no
# ForwardX11 no
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# Port 22
Protocol 2
HashKnownHosts yes
HPNDisabled yes
# Cipher 3des
# Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
Tingli
Esteemed Contributor

Re: scp copying problem

It should be file sshd_config instead of ssh_config.
Aneesh Mohan
Honored Contributor

Re: scp copying problem

Hi,

execute the below command.

cat /etc/opt/ssh/sshd_config |grep "^PermitRootLogin"

it should list o/p "PermitRootLogin yes"

if you didn`t get the aobe o/p please do the below steps and try the scp data transfer.

echo "PermitRootLogin yes" >> /opt/ssh/etc/sshd_config

/sbin/init.d/secsh stop;/sbin/init.d/secsh start


Aneesh
Chandrahasa s
Valued Contributor

Re: scp copying problem

Hi,

Try with other user name.

Chandra