- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: scp copying problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 06:53 AM
тАО05-11-2010 06:53 AM
Please help me for to copying files form one sever to another HPUX box using scp.
When i try to scp, i am getting error "Permission denied, please try again." The file permission is 530, i changed the permission to 777, even i getting the same error. Plese give your fourable input to solve this issue.
Command:
=========
scp -p TDPO.tdp_dm3cys_prod 142.117.84.97:/tmp/tcb
File:
====
-rw-r--r-- 1 root sys 57 Jul 21 2005 TDPO.tdp_dm3cys_prod
Error:
====
"Permission denied, please try again
Thanks in advance,
VINAY
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 07:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 07:05 AM
тАО05-11-2010 07:05 AM
Re: scp copying problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 07:16 AM
тАО05-11-2010 07:16 AM
Re: scp copying problem
=====
-rwxrwxrwx 1 root sys 57 Jul 21 2005 TDPO.tdp_dm3cys_prod <-----
-rw-r--r-- 1 root sys 811 Oct 17 2003 dsm.opt
-rw-r--r-- 1 root sys 236 Mar 15 2005 dsmerror.log
drwxrwxrwx 2 root sys 96 Jun 8 2004 logs
-r-xr-xr-x 1 root bin 735 Oct 21 2003 tdpo.opt
-rw-rw-rw- 1 ebutt ibmsys 135 Mar 15 2005 tdpoerror.log
Destination dir
===============
drwxrwxrwx 2 root sys 96 May 11 09:49 PROD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 07:21 AM
тАО05-11-2010 07:21 AM
Re: scp copying problem
And if /tmp/tcb is a directory, then what is its ownership and mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 07:33 AM
тАО05-11-2010 07:33 AM
Re: scp copying problem
atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 09:59 PM
тАО05-11-2010 09:59 PM
Re: scp copying problem
While doing scp you need to mention username also
it should look like
scp -p TDPO.tdp_dm3cys_prod root@142.117.84.97
:/tmp/tcb
then it will ask do you want connect if your connecting first time type yes
then provide root password of 142.117.84.97
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 11:47 PM
тАО05-11-2010 11:47 PM
Re: scp copying problem
Is there any command to copy directories aslo
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 11:52 PM
тАО05-11-2010 11:52 PM
Re: scp copying problem
Use scp -r to copy a dir Recursively.
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 11:55 PM
тАО05-11-2010 11:55 PM
Re: scp copying problem
>> but it is limited to copy only files.Is there any command to copy directories aslo
use "-r" option along with scp
>>"Permission denied, please try again
It seems like your PermitRootLogin is set to no in /opt/ssh/etc/sshd_config or ssh key is not working.
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 12:10 AM
тАО05-12-2010 12:10 AM
Re: scp copying problem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 12:26 AM
тАО05-12-2010 12:26 AM
Re: scp copying problem
irshad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 06:42 AM
тАО05-12-2010 06:42 AM
Re: scp copying problem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 06:51 AM
тАО05-12-2010 06:51 AM
Re: scp copying problem
Change the permission of tcb dir on remote server & try.
chmod 777 /tmp/tcb.
atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 06:53 AM
тАО05-12-2010 06:53 AM
Re: scp copying problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 07:05 AM
тАО05-12-2010 07:05 AM
Re: scp copying problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 07:11 AM
тАО05-12-2010 07:11 AM
Re: scp copying problem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 07:28 AM
тАО05-12-2010 07:28 AM
Re: scp copying problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 07:28 AM
тАО05-12-2010 07:28 AM
Re: scp copying problem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2010 11:02 PM
тАО05-12-2010 11:02 PM
Re: scp copying problem
Try with other user name.
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2010 06:15 AM
тАО05-13-2010 06:15 AM
Re: scp copying problem
I got the output for you command
(root)>cat /etc/opt/ssh/sshd_config | grep "PermitRootLogin"
PermitRootLogin no
# "PermitRootLogin without-password". If you just want the PAM account and
Thanks
vinay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2010 07:08 AM
тАО05-13-2010 07:08 AM
Re: scp copying problem
1) vi /opt/ssh/etc/sshd_config
2) set PermitRootLogin yes
3) save
4) bounce ssh (optional)
should solve your problem.
Regards,
HP-UX Admin