- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh reseting
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
04-01-2007 02:40 AM
04-01-2007 02:40 AM
ssh reseting
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for hostname has changed,
and the key for the according IP address 172.31.100.120
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
75:a7:a5:d0:16:03:e2:0b:6a:2a:cd:75:1a:56:fe:0b.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:2
RSA host key for hostname has changed and you have requested strict checking.
Host key verification failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2007 02:45 AM
04-01-2007 02:45 AM
Re: ssh reseting
But i am soon disconnected...
my /root/known_hosts file :
|1|W6Lk6W+KZvEKb16ERn85fmhbYKE=|4UAGxA7TiFL0PTI/kWkApe6Izrk= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5qHr8lFmegMewySeOC9WyijSY7MirGbiUKHw6Vkfl9sOG+18xiVyUUL63bScJox5MxjzJgqT+0Q01sB2eesAR3kjV/NBsKO8grd0Cy5s35PQrZZ98eunHCUiMh7xxCvojlp+pD5K6qTnD1R3g5zM8uyAgeFoEZupDSeUjMDCWZBOa0NP+uSB2leq7YBVpyBLIdUey9+M+vow5njZoaZdWFHFbsZ9KpLjoOvGSPfen3rbk4JFlM/WYLMFlprdUXynWQ6VLEn4o+OPMY1Jq1L/H6cju4d5g/0YVjw6HHnJq3n6hROAfoDrJ682V50nf4Z8rWK40W6me2aKXCvBXH1URw==
|1|5odrJxwcfDs2dzwqUMzUuYJa9/k=|EehijO13D77JcKio1ODT60nlHm0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5qHr8lFmegMewySeOC9WyijSY7MirGbiUKHw6Vkfl9sOG+18xiVyUUL63bScJox5MxjzJgqT+0Q01sB2eesAR3kjV/NBsKO8grd0Cy5s35PQrZZ98eunHCUiMh7xxCvojlp+pD5K6qTnD1R3g5zM8uyAgeFoEZupDSeUjMDCWZBOa0NP+uSB2leq7YBVpyBLIdUey9+M+vow5njZoaZdWFHFbsZ9KpLjoOvGSPfen3rbk4JFlM/WYLMFlprdUXynWQ6VLEn4o+OPMY1Jq1L/H6cju4d5g/0YVjw6HHnJq3n6hROAfoDrJ682V50nf4Z8rWK40W6me2aKXCvBXH1URw==
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2007 04:06 AM
04-01-2007 04:06 AM
Re: ssh reseting
> known_hosts
And try again.
The most likely cause of this is that either the target or the source system has generated a new public key, most likely from a system being re-installed.
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
04-01-2007 05:53 PM
04-01-2007 05:53 PM
Re: ssh reseting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2007 08:38 PM
04-01-2007 08:38 PM
Re: ssh reseting
please check
/var/adm/syslog/syslog.log
on target host for sshd messages
Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2007 09:08 PM
04-01-2007 09:08 PM
Re: ssh reseting
" Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:2
RSA host key for hostname has changed and you have requested strict checking."
Most likely on your ssh client someone has enforced strict hostkey checking, because the default setting would be "ask".
This means that your ssh client isn't, after having shown you the above warning about a discovered mismatch between advertised hostkey on the ssh server and the current entry in the user's known_hosts file of the client, as it normally would, viz. asking you to either confirm (i.e. accepting the possibly spoofed identity of the ssh server), and then letting it save the new server's ssh host key on *your* behalf, or simply aborting by disapproving.
Because you most likely have an entry like
"StrictHostKeyChecking yes" your ssh client will *never* modify your client's user's known_host file, but instead the user to manually add new or remove outdated keys.
Please, check your ssh client's global config.
e.g.
# grep -i stricthostkeycheck /opt/ssh/etc/ssh_config
# StrictHostKeyChecking ask
or if prevelant, your user's overriding config
e.g.
$ grep -i stricthostkeycheck $HOME/.ssh/config
If you wish to stick with StrictHostKeyChecking you need to manually delete the outdated host key, and add the new one.
As you are obviously using an OpenSSH release >= 4 your hostkeys, as well as names they belong to are hashed, which makes them difficult to identify by humans.
But ssh-keygen supports new options to ease the task.
You can use -F option of ssh-keygen to identify the key belonging to a particular host.
e.g.
$ ssh-keygen -F somehost
should print that hosts hashed key.
Similarily,
$ ssh-keygen -R somehost
would remove the entry for somehost.
After that you could append the new host key by e.g.
$ ssh -o stricthostkeychecking=no someone@somehost >> ~/.ssh/known_hosts
someone@somehost password: ^C
Note, you don't need to do a full login here
as the key's already been saved to someone's known_hosts (thus the ^C), which you can immediately verify.
$ ssh-keygen -F somehost
Note also, you should (even temporarily) disable strict host key checking only after you have verified that the advertised host key's fingerprint is *really* the correct one.
If this is all too much fuss,
you could relapse to "ask" by either commenting out the stricthostkeychecking directive in ssh_config (or your personel config), or setting it explicitly to ask.
Besides, you should never simply delete or clobber by redirection any user's know_hosts file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2007 05:01 AM
04-11-2007 05:01 AM
Re: ssh reseting
ssh user@host
ssh: connect to host ppgp2 port 22: Connection refused
My problems are now worse...I can't connect...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2007 09:07 PM
04-11-2007 09:07 PM
Re: ssh reseting
Are you sure the sshd is running there?
And if, is it listening on the standard port?
On remote host do
$ UNIX95= ps -fC sshd
or
$ ps -fp $(cat /var/run/sshd.pid)
UID PID PPID C STIME TTY TIME COMMAND
root 28891 1 0 Dec 4 ? 35:37 /opt/ssh/sbin/sshd
Check if it was started with deviating Addr:Port options.
$ grep -Ei 'listenaddress|port' /etc/opt/ssh/sshd_config
If all's commented the defaults were taken,
and there should be a listening socket on port 22.
Check this
$ netstat -an -f inet|awk '$NF~/LISTEN/&&$4~/\.22$/'
tcp 0 0 *.22 *.* LISTEN
If you discovered a deviating port in sshd_config then replace 22 in above command with the appropiate port No..
If it was a different port then on the client that wants to connect address this port.
e.g. if server was listening at 2222
$ ssh -p 2222 -l user host hostname
Beware, scp already uses -p to designate "preserve permissions".
So with scp specify deviating port with -P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2007 11:53 PM
04-11-2007 11:53 PM
Re: ssh reseting
I was able to connect but only for a short while....
$ Read from remote host XXXX: Connection reset by peer
Connection to XXXX closed.
Tried again to connect...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b2:11:94:bf:7d:c5:58:59:54:f4:e9:e8:c7:c7:0e:63.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
Permission denied (publickey,password).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2007 11:57 PM
04-11-2007 11:57 PM
Re: ssh reseting
UID PID PPID C STIME TTY TIME CMD
root 14609 1 0 Apr02 ? 00:00:00 /usr/sbin/sshd
$grep -Ei 'listenaddress|port' /etc/ssh/sshd_config
# What ports, IPs and protocols we listen for
Port 22
#ListenAddress ::
#ListenAddress 0.0.0.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 01:08 AM
04-12-2007 01:08 AM
Re: ssh reseting
Don't get me wrong, but you checked these ssh server settings on the remote host that you want to connect to, not of the localhost's ssh server?
There should be no need to reinstall SSH, neither on remote, nor localhost, only needs to get configured correctly and restarted.
So we can assume that you have root access to both remote and local host?
As your ssh client is informing you to change root's known_hosts on local host you must have run the ssh command as root.
The user "user" was only a placeholder from my example.
Therefore you should pick a valid user on remote host.
But anyway, I don't think that we even get this far because already the host key checking fails, long before any user can be authenticated.
Have you tried to execute with the -o stricthostkeychecking=no already?
e.g.
ssh -o stricthostkeychecking=no -l remote_valid_user remote_host hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 01:11 AM
04-12-2007 01:11 AM
Re: ssh reseting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 01:31 AM
04-12-2007 01:31 AM
Re: ssh reseting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 02:23 AM
04-12-2007 02:23 AM
Re: ssh reseting
I don't think so....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 02:23 AM
04-12-2007 02:23 AM
Re: ssh reseting
I don't think so....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 02:25 AM
04-12-2007 02:25 AM
Re: ssh reseting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 03:33 AM
04-12-2007 03:33 AM
Re: ssh reseting
I dont get disconnected from any other host.
All applications that connect to other hosts also get disconnected. I suspect there's some kind of system-wide login disconnection timeout....