- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disabling passwd for SSH
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
01-01-2003 03:13 AM
01-01-2003 03:13 AM
Disabling passwd for SSH
I'm running SSH on a HP11.0 machine of version:
F-Secure SSH 2.4.0 (build 12) on hppa1.1-hp-hpux11.00
However, I keep getting passwd prompts whenever I try connecting into another HP11 machine with SSH of the same version installed.
The output is as below:
pghc0001[11]% ssh pglc0050
Host key not found from database.
Key fingerprint:
xesek-selut-gerev-dosyg-sicot-pepim-rituh-rikak-tuhyn-fynig-fyxex
You can get a public key's fingerprint by running
% ssh-keygen -F publickey.pub
on the keyfile.
Are you sure you want to continue connecting (yes/no)? y
Please answer 'yes' or 'no': yes
Host key saved to /home/cs/ken_lee/.ssh2/hostkeys/key_22_pglc0050.pub
host key for pglc0050, accepted by ken_lee Wed Jan 01 2003 10:26:43
ken_lee's password:
Authentication successful.
Last login: Fri Aug 30 2002 09:17:04 +0800 from tigger.willowglen.com
No mail.
SOURCING /home/cs/environment/cshrc
SOURCING /home/cs/environment/login
pglc0050[1]%
I've tried disabling the following attributes in the files ssh2_config and sshd2_config, but it had still prompted for a password:
1)ssh2_config
#PasswordPrompt "%U@%H's passwd: "
#PasswordPrompt "%U's password: "
#AllowedAuthentications publickey, password
#AllowedAuthentications hostbased,publickey,
password
2)sshd2_config
#AllowedAuthentications hostbased,publickey,
password
#AllowedAuthentications publickey,pam-1@ssh.com
#AllowedAuthentications publickey, password
#RequiredAuthentications publickey,password
I've even tried, on a desperate attempt, adding the machines and usernames in .rhosts file on both machines, but that failed too.
In the case when public keys, host keys and fingerprint were already generated, it had still prompted for a passwd as below:
pglc0050[1]%ssh snoopy
ken_lee's password:
I was wondering if there are ways to disable the passwd prompt when a user logs into another machine with SSH?
Could someone kindly help me out?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2003 05:59 PM
01-01-2003 05:59 PM
Re: Disabling passwd for SSH
I dont know about F-Secure,
But we are using HP-UX Secure Shell, A.03.10.002. (T1471AA)
You can download this from the depot site of hp.
Here you have to create keys for each user with ssh-keygen and copy these id files to remote host. It will allow you to login to remote host without password.
If u need detail procedure about this, let me know.
Srini.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2003 06:46 PM
01-01-2003 06:46 PM
Re: Disabling passwd for SSH
ssh-keygen -t dsa(or rsa) -C "" -N ""
Append your_home/.ssh/id_dsa.pub (ex., dsa) to the other host into your_home/.ssh/authorized_keys
If you are sure that you copied the public key properly to the other system into authorized_keys file, then the other thing that I can think of is to check if "strictmodes" is set to yes on the remote server. Look at the sshd_config and see if it is set to yes. If that is case, then you have to keep strict permissions (750 max) on the home directory.
TO find more details, run "sshd" in debug mode on the remote server. kill sshd and run it manually with the command
#sshd -d
Observe the debugged output generated while you connect through ssh. YOu should be able to find the reason.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2003 07:01 PM
01-01-2003 07:01 PM
Re: Disabling passwd for SSH
2) put the public key file name into ~/.ssh2/authorization
Something like
Keys pglc0050.pub
3) Save file
4) try connect from pglc0050 to pghc0001 again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2003 09:09 PM
01-01-2003 09:09 PM
Re: Disabling passwd for SSH
I'd like to see the procedure. I want to use scp to replace rcp
Thanks.
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2003 10:30 PM
01-01-2003 10:30 PM
Re: Disabling passwd for SSH
Could you provide the procedure on how to have the keys for each user created with ssh-keygen?
This is because I have about 100 client machines with F-secure version of SSH installed.
Appreciate it if you could show the procedure required.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2003 10:33 PM
01-01-2003 10:33 PM
Re: Disabling passwd for SSH
Could you provide the procedure on how to have the keys for each user created with ssh-keygen?
This is because I have about 100 client machines with F-secure version of SSH installed.
Appreciate it if you could show the procedure required.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2003 10:38 PM
01-01-2003 10:38 PM
Re: Disabling passwd for SSH
Could you provide the procedure on how to have the keys for each user created with ssh-keygen?
This is because I have about 100 client machines with F-secure version of SSH installed.
Appreciate it if you could show the procedure required.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 07:39 AM
01-02-2003 07:39 AM
Re: Disabling passwd for SSH
Here's an overview of the steps you need to take:
-Generate a key pair with ssh-keygen2 on the client system.
-Create a file named "identification" in your $HOME/.ssh2 directory. The file must contain a line with the name of the key you want to use. Example:
IdKey id_dsa_1024_a
-Copy your public key to the remote host and place it in your $HOME/.ssh2 directory
-On the remote host, create a file named "authorization" in you $HOME/.ssh2 directory. It must contain a line with the name of the public key that matches what you specified on the client. Example:
Key id_dsa_1024_a.pub
This file is case sensitive so "Key" must have a capitol "K".
The above process must be done for each user. You may want to use a unique name for your keys. I like the format: user@host
Be sure you uncomment the following in the client's ssh2_config and the server's sshd2_config:
AllowedAuthentications publickey, password
That allows users to ssh with a key or a password.
When using keys, you have 2 methods for ssh'ing without the requirement of specifying a password or a passphrase. The first method is to specify a null passphrase. Do this with "ssh-keygen2 -P". This is not the most secure method because if you private key is stolen, whoever has it can ssh in.
The more secure method is to generate the key with a passphrase and then utilize ssh-agent2 and ssh-add2. ssh-agent2 should be executed on the client system before you attempt to ssh to the server. Then you run ssh-add2 to input the passphrase for the key you are using.
You really should read the User's and Administrator's Guide. Hopefully what I've written is enough to get you started but there's much more in the manual.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 09:51 AM
01-02-2003 09:51 AM
Re: Disabling passwd for SSH
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 08:40 PM
01-02-2003 08:40 PM
Re: Disabling passwd for SSH
Sorry i was off yesterday. so could'nt reply u soon.
Cheril gave you a good reference. you can use that.
But as you have 100 client machines, I'll check for the procedures of using ssh_known_hosts method. Do you have all the users id's same in all the machines?.
Srini.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 11:49 PM
01-02-2003 11:49 PM
Re: Disabling passwd for SSH
Frist u can genreate a ssk public key
#ssh-keygen -tdsa
than copy public key into server with login name which u want to login
#scp /.ssh/id_dsa.pub loginname@
#ssh loginname@
afther this u will be able to connect with ssh witout a password