- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- scp sking for password!
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
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
тАО10-24-2010 09:44 PM
тАО10-24-2010 09:44 PM
----------------------------------------------
drwx------ 2 dbitf bc 1024 Oct 25 08:26 .ssh
----------------------------------------------
-rw-r--r-- 1 dbitf bc 604 Oct 24 11:01 authorized_keys
-rw------- 1 dbitf bc 668 Oct 14 13:51 id_dsa
-rw-r--r-- 1 dbitf bc 603 Oct 14 13:51 id_dsa.pub
-------------------------------------------
$ scp -v dbitf@bat-bc1:/usr3/live/edw_extracts/test /home/dbitf
Executing: program /opt/ssh/bin/ssh host bat-bc1, user dbitf, command scp -v -f /usr3/live/edw_extracts/test
OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8l 5 Nov 2009
HP-UX Secure Shell-A.05.30.007, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to bat-bc1 [10.3.4.16] port 22.
debug1: Connection established.
debug1: identity file /home/dbitf/.ssh/identity type -1
debug1: identity file /home/dbitf/.ssh/id_rsa type -1
debug1: identity file /home/dbitf/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5
debug1: match: OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: AUTH STATE IS 0
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: client->server aes128-ctr 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 'bat-bc1' is known and matches the RSA host key.
debug1: Found key in /home/dbitf/.ssh/known_hosts:9
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
---------------------------------------------------------------------------
This system is a private property of BAHRAIN TELECOMMUNICATION.
Do not attempt to login unless you are an authorized user.
Any authorized or unauthorized access or use may be monitored and
can result in criminal or civil prosecution under applicable law.
---------------------------------------------------------------------------
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/dbitf/.ssh/identity
debug1: Trying private key: /home/dbitf/.ssh/id_rsa
debug1: Offering public key: /home/dbitf/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
Password:
---------------------------------------------
Regards,
Ahmed
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2010 10:10 PM
тАО10-24-2010 10:10 PM
Re: scp sking for password!
ie, user of one server (dbitf@bat-bc1) doesn't have a access to the another user's home directory of another server (/home/dbitf).
Try to copy the file to someother location where 777 permissions are set.
HTH:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2010 10:18 PM
тАО10-24-2010 10:18 PM
Re: scp sking for password!
still the same, the directory has 777 permission, not only this the user id on both servers is the same.
Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2010 10:20 PM
тАО10-24-2010 10:20 PM
Re: scp sking for password!
debug1: Next authentication method: publickey
debug1: Trying private key: /oracle/.ssh/identity
debug1: Offering public key: /oracle/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2010 10:20 PM
тАО10-24-2010 10:20 PM
Re: scp sking for password!
How are you ?.
The problem seems you are trying with dsa key in your authorized_keys.
You may generate rsa key and update in authorized_keys of remote server.
Please try the following:
ServerA and ServerB both should run the ssh daemons.To allow ServerA to SSH to ServerB without password
Login to the source server (server A)
# ssh-keygen -t rsa
accpet all defaults sttings.
This generates two files id_rsa.pub and id_rsa
Now,id_rsa.pub needs to be appended to the authorized_keys file on ServerB
Rename this file to some other name , for identification.
#mv id_rsa.pub
copy this file to serverB.
# scp
Login to server B
move to the .ssh folder under your home directory
Take a backup of the file authorized_keys
#cp -p authorized_keys authorized_keys.backup
# cat
Now try login from server A to B
Note: If you are implementing it first time there will not be any authorized_keys file. So you can simply rename the file id_rsa.pub
Repeat this process starting from server B to A to allow passwordless login from server B to A
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2010 10:26 PM
тАО10-24-2010 10:26 PM
Re: scp sking for password!
Can you please verify, are these both servers using same algorithm? (RSA/DSA)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2010 10:38 PM
тАО10-24-2010 10:38 PM
Re: scp sking for password!
I done exactly what you told me, bu still ahking for a password.
Siva,
I tried DSA and now I generate RSA but still the same.
Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2010 10:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2010 10:55 PM
тАО10-24-2010 10:55 PM
Re: scp sking for password!
in syslog I'm getting:
bat-bc1 sshd[9449]: Authentication refused: bad ownership or modes for directory /usr3/live/edw_extracts
-------------------------------------
the permission is :
drwxrwxrwx 5 bc bc 21504 Oct 25 09:22 edw_extracts
Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2010 11:10 PM
тАО10-24-2010 11:10 PM
Re: scp sking for password!
Looks like dbitf has a problem with this directory (or the parent directory).
Log in as dbitf in the bat-bc1 machine and try to copy the file "test" to the home base:
$cp /usr3/live/edw_extracts/test /home/dbitf
Horia.
Horia.