- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH Version 3.71 Again
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
05-18-2004 09:48 AM
05-18-2004 09:48 AM
Just going got done with my first install of SSH and I have another question. I created a key pair and copied the public key to the server I am trying to go to under the user name. I see in another post if I use key authentication and have .shosts configured I can do an scp withouth having to enter a password. Well, it's not working and I am wondering if anyone has an ideas. I don't care it's not recommended to not have a a password because we are just trying to learn it at this point...
Thanks,
Ryan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 10:26 AM
05-18-2004 10:26 AM
Re: SSH Version 3.71 Again
RhostsAuthentication is a deprecated option for 3.7. So, I don't think it works anymore. But I haven't verified it on 3.7.1p1 as it is against our site policies.
There are couple of ways to go around the "passphrase" issue. One is less secured - Generate a key pair without a passphrase. For ex.,
$ssh-kehgen -t dsa -N ""
Then copy the id_dsa.pub to the remote host and append/copy it to $HOME/.ssh/authorized_keys file.
Then when you try ssh/scp/sftp, they shouldn't prompt for password.
The next one, more secured is to generate the key pair with a passphrase
$ssh-keygen -t dsa
It will prompt you to enter a pass-phrase. Again copy id_dsa.pub onto the remote host like the above. But this time, when you do ssh/scp/sftp, it will ask for the passphrase. Once supplied, it should let you login.
In this case, since again it is another level of interaction, you can read it into your memory using the following commands.
$ssh-agent > /home/user/.ssh/ssh-agent.conf
$ssh-add /home/user/.ssh/id_dsa
$. /home/user/.ssh/ssh-agent.conf
$ssh remote_host
Subsequent ssh sessions shouldn't ask you for either passphrase or passwords. But that's valid only for that terminal session. For a new terminal, you would need to run
$. /home/user/.ssh/ssh-agent.conf
Once you are done, kill the ssh-agent processes running on the system.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 01:07 AM
05-19-2004 01:07 AM
Re: SSH Version 3.71 Again
Thanks for the reply. I will try this and reply with further questions
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 02:00 AM
05-19-2004 02:00 AM
Re: SSH Version 3.71 Again
Thanks for the help, but it still is prompting for a password on scp.
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
Password:
It is doing next authentication method: keyboard-interactive and I am wondering if there is a way to not have keyboard interaction????
I would like to use HP's version, but as you mentioned the shosts functionality probably won't work with this version...I will keep testing this and thanks for the help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 02:21 AM
05-19-2004 02:21 AM
Re: SSH Version 3.71 Again
A good way to find the reason why the public/private key authentication is not working is to turn on the debugging on the server side on sshd daemon.
Stop the 'sshd' process on the remote host. Start it with -d switch.
#/opt/openssh/sbin/sshd -d (point to wherever it is installed
Then try connecting to the remote host and observe the debugged output on the server's sshd daemon.
It's most probably permissions on the home directory of the user on the remote host. To verify it, set the permissions to 700 and go from there. Or make "StrictModes no" in the sshd_config, restart sshd and try it again.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:08 AM
05-19-2004 03:08 AM
Re: SSH Version 3.71 Again
Permissions should be checked.
SEP
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
05-19-2004 03:27 AM
05-19-2004 03:27 AM
Re: SSH Version 3.71 Again
Thanks! The StrictMode = no with the public keys did what I needed. However, one more question becuase it was complaining about the permissions as you mentioned, what is it expecting for permissions on /userhome and ~/.ssh? Also, what ownership??
Thanks Again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 03:38 AM
05-19-2004 03:38 AM
SolutionIf the "StrictMode" is set to yes, then sshd will look for potential permissions issues with the home directory and .ssh directories of the user logging in.
The home directory should be owned by it's user with maximum permissions of 755. You will be able to determine the files/directories that violated the permissions from the sshd -d output.
These are the good things that are offered by ssh.
-Sri
PS: Since you are experimenting with ssh, I would suggest you try all the options and see how they work. There is a good documentation at openssh.org website.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 05:51 AM
05-19-2004 05:51 AM
Re: SSH Version 3.71 Again
The $ssh-keygen -t dsa -N "" worke for what I was testing, but I know installed the Strong Random Number Generator for this 11i version 1 system. If I use the keygen mentioned, does it still create a key with the Random Number Generator or does the Random Number Generator do me no god with this type of keygen? I hope that makes sense...
Thanks again for all the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 06:46 AM
05-19-2004 06:46 AM
Re: SSH Version 3.71 Again
You will get your answer when you run "ssh -vvv remotehost". In short it is YES.
For the systems that do not have KRNG installed, it will generate the seed using the commands in the file ssh-rand-helper which will is slower.
$ssh -vvv remote_host
...
debug1: Reading configuration data /opt/openssh2/etc/ssh_config
debug3: Seeding PRNG from /opt/openssh2/libexec/ssh-rand-helper
*****In the above you will see it waiting for sometime********
debug2: ssh_connect: needpriv 0
..
With KRNG installed, the random string will be readily available from the random device and the response will be almost instant.
$ssh -vvv remote_host
...
debug1: Reading configuration data /opt/openssh2/etc/ssh_config
debug3: RNG is ready, skipping seeding
*** See the above, it's immediate ****
debug2: ssh_connect: needpriv 0
..
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 06:59 AM
05-19-2004 06:59 AM
Re: SSH Version 3.71 Again
You get the numeric data you need faster, boosting performance.
There strong random generator helps in a number of ways, increasing the randomness in testing. There is no downside that I know of.
SEP
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
05-20-2004 01:06 AM
05-20-2004 01:06 AM
Re: SSH Version 3.71 Again
Thanks Again,
Ryan