- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remote ssh without 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
Forums
Discussions
Discussions
Discussions
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
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-05-2008 07:39 PM
10-05-2008 07:39 PM
Remote ssh without password
But server B have a change password policy ( the user is required to change password every month , that means the password will be expired every month ) , so when user ssh to server B , they are required to change password when it was expired , can advise how to let the user is no need to change password when login with remote ssh , but still need to change password when normal login , eg. telnet , ftp etc ?
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 07:50 PM
10-05-2008 07:50 PM
Re: Remote ssh without password
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 08:13 PM
10-05-2008 08:13 PM
Re: Remote ssh without password
.rhosts has nothing to do with ssh, just rcp, rlogin and remsh.
I would assume there isn't a way to do this, I have to change my password with rlogin and .rhosts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 09:17 PM
10-05-2008 09:17 PM
Re: Remote ssh without password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 09:34 PM
10-05-2008 09:34 PM
Re: Remote ssh without password
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 09:59 PM
10-05-2008 09:59 PM
Re: Remote ssh without password
9 ls -ali .ssh
10 touch .ssh/authorized_keys2
11 chmod 640 .ssh/authorized_keys2
12 ls -ali
( copy id_dsa.pub file to other machine at $HOME)
13 cat id_dsa.pub>>.ssh/authorized_keys2
16 rm id_dsa.pub
18 cd .ssh
20 ln -s authorized_keys2 authorized_keys
rau as ftporacl@suxde082 [/home/ftporacl]
# ls -ali .ssh
total 64
356 drwxr-xr-x 2 ftporacl users 96 Mar 12 15:25 .
319 drwxr-xr-x 3 ftporacl users 8192 Mar 12 15:24 ..
360 lrwxr-xr-x 1 ftporacl users 16 Mar 12 15:25 authorized_keys -> authorized_keys2
359 -rw-r----- 1 ftporacl users 601 Mar 12 15:22 authorized_keys2
357 -rw------- 1 ftporacl users 668 Mar 12 15:15 id_dsa
358 -rw-r--r-- 1 ftporacl users 607 Mar 12 15:15 id_dsa.pub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 10:48 PM
10-05-2008 10:48 PM
Re: Remote ssh without password
can advise in which server ( server A or server B )that I should run the below command ,
8 ssh-keygen -t dsa -f .ssh/id_dsa
9 ls -ali .ssh
10 touch .ssh/authorized_keys2
11 chmod 640 .ssh/authorized_keys2
12 ls -ali
13 cat id_dsa.pub>>.ssh/authorized_keys2
16 rm id_dsa.pub
18 cd .ssh
20 ln -s authorized_keys2 authorized_keys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 11:20 PM
10-05-2008 11:20 PM
Re: Remote ssh without password
Here find on which server to do what:
Server A:
ssh-keygen -t dsa -f .ssh/id_dsa
Server B:
(first you will need to copy the file from server A to B using scp or other ...)
cat id_dsa.pub>>.ssh/authorized_keys2
Server A:
use ssh with the user private key to connect to Server B.
Thats the big steps to make it work, hope it helps.
Regards,
Thierry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 11:28 PM
10-05-2008 11:28 PM
Re: Remote ssh without password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 11:42 PM
10-05-2008 11:42 PM
Re: Remote ssh without password
I am wonder the steps ,
I already set the user from server A is no need to use password to connect server B via ssh , but what I want now is I want the user is NO NEED TO CHANGE PASSWORD ( even the password is expired in server B ) , the above steps is fit the requirement ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2008 11:51 PM
10-05-2008 11:51 PM
Re: Remote ssh without password
No you won't need to change the password because it is not password dependent.
Its another mechanism which does not care about password at all
read the link and search for "How to Use RSA Key Authentication with SSH".
http://chxo.com/be2/20030905_77fe.html
Regards,
Thierry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2008 12:21 AM
10-06-2008 12:21 AM
Re: Remote ssh without password
If a acount is locked (and you configgured ssh corectly (pam on)) you have to change the passwd even when you use a key.
the only way to fix this is to use to sepperate users, one for normal login whit the passwd rulles on and one user that does not have the passwd rulles on.
If you use sudo you can give the one user the rights to switch to the other user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2008 12:24 AM
10-06-2008 12:24 AM
Re: Remote ssh without password
http://www.hpux.ws/?p=19
They key issue here is ownership and permissions on the home directory and .ssh folder. If not precise password free access will not work.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com