- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
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-2009 11:41 PM
тАО05-11-2009 11:41 PM
ssh without password
I know ssh-keygen -t rsa can public key to let local user login / scp to remote server without password , if I use this method to set it , ALL scp / remote login is no need to input password , can advise if I want only a specific ( not all ) jobs can do it ( without password to scp / remote login ) , what can i do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2009 11:51 PM
тАО05-11-2009 11:51 PM
Re: ssh without password
ssh password less login is user specific. If you setup a ssh password less login for a specific user then all ssh/scp/sftp/slogin won't require password to specific destination server where you have put the public key.
I don't think you can restrict with specific job.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2009 11:54 PM
тАО05-11-2009 11:54 PM
Re: ssh without password
if I want to let specific job to password less to run , what can i do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 12:07 AM
тАО05-12-2009 12:07 AM
Re: ssh without password
As Ganesan stated passwordless ssh will be user specific.
You can have your job owned by specific user and have that user passwordless authentication using SSH.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 12:22 AM
тАО05-12-2009 12:22 AM
Re: ssh without password
If I would like to do it , except passwordless ssh , is there other method ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 12:35 AM
тАО05-12-2009 12:35 AM
Re: ssh without password
If your user is intend to do only that specific job then you can follow below steps :
1)This specific user should have shell /usr/bin/rsh
2) Create a directory (/home/username/bin) where all your required commands / binaries will reside so this user can execute only these benaries (remotely)
3)Under this users profile specify PATH variable to : export PATH=/home/username/bin
4)Whatever command and files you are going to execute should have respective file permissions for this specific user.
Hope, this way around will work in your case.
Please, assign points if the solution found suitable.
regards,
Vikas Thorat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 12:48 AM
тАО05-12-2009 12:48 AM
Re: ssh without password
please make in users home directory .ssh directory
if ssh from first server to second server then cut and paste public key from server one in $HOME/.ssh/authorized_keys on server two
reverse the process for reverse.
$HOME and $HOME/.ssh must not be writable by group or other.
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 01:20 AM
тАО05-12-2009 01:20 AM
Re: ssh without password
Just create a new user keep all the things are same means permissions, home directiory but make it passwd less and give to that particular customer.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 01:35 AM
тАО05-12-2009 01:35 AM
Re: ssh without password
>>If I would like to do it , except passwordless ssh , is there other method ?<<
if you still don't want to go for standard password less login method, you should try with tools like "expect"
With the help of this tool, you can issue password inside the script. You can use that script to ssh/scp/sftp.
You can download expect from here.
http://expect.nist.gov/
Refer this recent thread on how to configure the script.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1337805
Also this
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1005570
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 02:35 AM
тАО05-12-2009 02:35 AM
Re: ssh without password
Individual users can exchange ssh passwords via public key exchange.
http://www.hpux.ws/?p=10
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com