<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ssh does not work when ssh client and server are on the same subnet in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221267#M531802</link>
    <description>&lt;!--!*#--&gt;&amp;gt; Have you looked in the system log file(s)?&lt;BR /&gt;&lt;BR /&gt;On my 11.11 system, I see SSH-related&lt;BR /&gt;messages in "/var/adm/syslog/syslog.log".&lt;BR /&gt;(Mine show success, but I'd still expect to&lt;BR /&gt;find useful info there if there's a problem.)</description>
    <pubDate>Tue, 26 Jan 2010 05:19:54 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2010-01-26T05:19:54Z</dc:date>
    <item>
      <title>ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221257#M531792</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I just got several hp rp3440 servers moved to my location. Those servers came with fully installed hp-ux 11i v2 and had been in use for years.&lt;BR /&gt;&lt;BR /&gt;After I put them on the network and assigned them the new ip/submask etc... I found out I could use Putty to ssh to those servers from subnets other than the one those servers are on. BUT SSH FAILED TO CONNECT TO THE SERVER WHEN THE SSH CLIENT WAS ON THE SAME SUBNET AS THOSE SERVERS!!!??? &lt;BR /&gt;&lt;BR /&gt;I checked the ipFilter setting and sshd_config and could not find the answer. DID I MISS ANYTHING? WHAT ELSE SHOULD I CHECK?&lt;BR /&gt;&lt;BR /&gt;THANKS IN ADVANCE!&lt;BR /&gt;&lt;BR /&gt;************************************&lt;BR /&gt;&lt;BR /&gt;To check ipFilter I did this:&lt;BR /&gt;&lt;BR /&gt;h466:/roothome # ipf -V&lt;BR /&gt;ipf: HP IP Filter: v3.5alpha5 (A.11.23.15.01) (376)&lt;BR /&gt;Kernel: HP IP Filter: v3.5alpha5 (A.11.23.15.01)&lt;BR /&gt;Running: yes&lt;BR /&gt;Log Flags: 0 = none set&lt;BR /&gt;Default: pass all, Logging: available&lt;BR /&gt;Active list: 1&lt;BR /&gt;h466:/roothome #&lt;BR /&gt;**********************************************&lt;BR /&gt;h466:/roothome # ipfstat -ioh&lt;BR /&gt;empty list for ipfilter(out)&lt;BR /&gt;empty list for ipfilter(in)&lt;BR /&gt;h466:/roothome #&lt;BR /&gt;&lt;BR /&gt;**********************************************&lt;BR /&gt;Here is the sshd_config: (see the attachement for better format :) )&lt;BR /&gt;&lt;BR /&gt;# $OpenBSD: sshd_config,v 1.70 2004/12/23 23:11:00 djm Exp $&lt;BR /&gt;&lt;BR /&gt;# This is the sshd server system-wide configuration file.  See&lt;BR /&gt;# sshd_config(5) for more information.&lt;BR /&gt;&lt;BR /&gt;# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin&lt;BR /&gt;&lt;BR /&gt;# The strategy used for options in the default sshd_config shipped with&lt;BR /&gt;# OpenSSH is to specify options with their default value where&lt;BR /&gt;# possible, but leave them commented.  Uncommented options change a&lt;BR /&gt;# default value.&lt;BR /&gt;&lt;BR /&gt;#Port 22&lt;BR /&gt;Protocol 2&lt;BR /&gt;#AddressFamily any&lt;BR /&gt;#ListenAddress 0.0.0.0&lt;BR /&gt;#ListenAddress ::&lt;BR /&gt;&lt;BR /&gt;# HostKey for protocol version 1&lt;BR /&gt;#HostKey /opt/ssh/etc/ssh_host_key&lt;BR /&gt;# HostKeys for protocol version 2&lt;BR /&gt;#HostKey /opt/ssh/etc/ssh_host_rsa_key&lt;BR /&gt;#HostKey /opt/ssh/etc/ssh_host_dsa_key&lt;BR /&gt;&lt;BR /&gt;# Lifetime and size of ephemeral version 1 server key&lt;BR /&gt;#KeyRegenerationInterval 1h&lt;BR /&gt;#ServerKeyBits 768&lt;BR /&gt;&lt;BR /&gt;# Logging&lt;BR /&gt;#obsoletes QuietMode and FascistLogging&lt;BR /&gt;#SyslogFacility AUTH&lt;BR /&gt;#LogLevel INFO&lt;BR /&gt;&lt;BR /&gt;# Authentication:&lt;BR /&gt;&lt;BR /&gt;#LoginGraceTime 2m&lt;BR /&gt;PermitRootLogin yes&lt;BR /&gt;#StrictModes yes&lt;BR /&gt;#MaxAuthTries 6&lt;BR /&gt;#CountKeyAuthBadLogins no&lt;BR /&gt;&lt;BR /&gt;# Auth selection&lt;BR /&gt;#&lt;BR /&gt;#HostbasedAuthAllowUsers&lt;BR /&gt;#HostbasedAuthDenyUsers&lt;BR /&gt;#PubkeyAuthAllowUsers&lt;BR /&gt;#PubkeyAuthDenyUsers&lt;BR /&gt;#KerberosAuthAllowUsers&lt;BR /&gt;#KerberosAuthDenyUsers&lt;BR /&gt;#KerberosOrLocalPasswdAllowUsers&lt;BR /&gt;#KerberosOrLocalPasswdDenyUsers&lt;BR /&gt;PasswordAuthallowUsers&lt;BR /&gt;#PasswordAuthDenyUsers&lt;BR /&gt;#ChallRespAuthAllowUsers [pam] user1 user2 ...&lt;BR /&gt;#ChallRespAuthDenyUsers  [pam] user1 user2 ...&lt;BR /&gt;#ChallRespAuthAllowUsers [bsdauth] user1 user2 ...&lt;BR /&gt;#ChallRespAuthDenyUsers  [bsdauth] user1 user2 ...&lt;BR /&gt;#ChallRespAuthAllowUsers [skey] user1 user2 ...&lt;BR /&gt;#ChallRespAuthDenyUsers  [skey] user1 user2 ...&lt;BR /&gt;#ChallRespAuthAllowUsers [securid] user1 user2 ...&lt;BR /&gt;#ChallRespAuthDenyUsers  [securid] user1 user2 ...&lt;BR /&gt;#GSSAPIAuthAllowUsers&lt;BR /&gt;#GSSAPIAuthDenyUsers&lt;BR /&gt;&lt;BR /&gt;#RSAAuthentication yes&lt;BR /&gt;#PubkeyAuthentication yes&lt;BR /&gt;#AuthorizedKeysFile .ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts&lt;BR /&gt;#RhostsRSAAuthentication no&lt;BR /&gt;# similar for protocol version 2&lt;BR /&gt;#HostbasedAuthentication no&lt;BR /&gt;# Change to yes if you don't trust ~/.ssh/known_hosts for&lt;BR /&gt;# RhostsRSAAuthentication and HostbasedAuthentication&lt;BR /&gt;#IgnoreUserKnownHosts no&lt;BR /&gt;# Don't read the user's ~/.rhosts and ~/.shosts files&lt;BR /&gt;#IgnoreRhosts yes&lt;BR /&gt;&lt;BR /&gt;# To disable tunneled clear text passwords, change to no here!&lt;BR /&gt;PasswordAuthentication yes&lt;BR /&gt;#PermitEmptyPasswords no&lt;BR /&gt;&lt;BR /&gt;# Change to no to disable s/key passwords&lt;BR /&gt;#ChallengeResponseAuthentication yes&lt;BR /&gt;&lt;BR /&gt;# Kerberos options&lt;BR /&gt;KerberosAuthentication yes &lt;BR /&gt;#KerberosOrLocalPasswd yes&lt;BR /&gt;#KerberosTicketCleanup yes&lt;BR /&gt;#KerberosGetAFSToken no&lt;BR /&gt;&lt;BR /&gt;# GSSAPI options&lt;BR /&gt;#GSSAPIAuthentication no&lt;BR /&gt;#GSSAPICleanupCredentials yes&lt;BR /&gt;&lt;BR /&gt;# Set this to 'yes' to enable PAM authentication, account processing, &lt;BR /&gt;# and session processing. If this is enabled, PAM authentication will &lt;BR /&gt;# be allowed through the ChallengeResponseAuthentication mechanism. &lt;BR /&gt;# Depending on your PAM configuration, this may bypass the setting of &lt;BR /&gt;# PasswordAuthentication, PermitEmptyPasswords, and &lt;BR /&gt;# "PermitRootLogin without-password". If you just want the PAM account and &lt;BR /&gt;# session checks to run without PAM authentication, then enable this but set &lt;BR /&gt;# ChallengeResponseAuthentication=no&lt;BR /&gt;UsePAM no &lt;BR /&gt;&lt;BR /&gt;#AllowTcpForwarding yes&lt;BR /&gt;#GatewayPorts no&lt;BR /&gt;X11Forwarding yes &lt;BR /&gt;#X11DisplayOffset 10&lt;BR /&gt;X11UseLocalhost no &lt;BR /&gt;#PrintMotd yes&lt;BR /&gt;#PrintLastLog yes&lt;BR /&gt;#TCPKeepAlive yes&lt;BR /&gt;#EnforceSecureTTY no&lt;BR /&gt;#UseLogin no&lt;BR /&gt;#UsePrivilegeSeparation yes&lt;BR /&gt;#PermitUserEnvironment no&lt;BR /&gt;#Compression delayed &lt;BR /&gt;#ClientAliveInterval 0&lt;BR /&gt;#ClientAliveCountMax 3&lt;BR /&gt;#UseDNS yes&lt;BR /&gt;#PidFile /var/run/sshd.pid&lt;BR /&gt;#MaxStartups 10&lt;BR /&gt;&lt;BR /&gt;# no default banner path&lt;BR /&gt;Banner /etc/issue &lt;BR /&gt;&lt;BR /&gt;# override default of no subsystems&lt;BR /&gt;Subsystem sftp /opt/ssh/libexec/sftp-server&lt;BR /&gt;&lt;BR /&gt;# sftp-server logging&lt;BR /&gt;#LogSftp no&lt;BR /&gt;#SftpLogFacility AUTH&lt;BR /&gt;#SftpLogLevel INFO&lt;BR /&gt;&lt;BR /&gt;# sftp-server umask control&lt;BR /&gt;#SftpUmask&lt;BR /&gt;&lt;BR /&gt;#SftpPermitChmod yes&lt;BR /&gt;#SftpPermitChown yes&lt;BR /&gt;&lt;BR /&gt;****************************************&lt;BR /&gt;&lt;BR /&gt;THE END&lt;BR /&gt;</description>
      <pubDate>Sun, 24 Jan 2010 05:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221257#M531792</guid>
      <dc:creator>newa</dc:creator>
      <dc:date>2010-01-24T05:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221258#M531793</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Try to login as a normal user and see what happens. By default the root cannot ssh into a machine unless you uncomment "PermitRootLogin yes"&lt;BR /&gt;&lt;BR /&gt;Verify the FQDN of your server and nslookup both ip and FQDN and hostname.  Adjust your /etc/hosts files and verify DNS records.&lt;BR /&gt;&lt;BR /&gt;Check syslog for errors and post.</description>
      <pubDate>Sun, 24 Jan 2010 07:15:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221258#M531793</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-01-24T07:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221259#M531794</link>
      <description>In addition to above, please check whether setting in /etc/rc.config.d/netconf and /etc/hosts coinside.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Sun, 24 Jan 2010 11:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221259#M531794</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2010-01-24T11:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221260#M531795</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] SSH FAILED TO CONNECT [...]&lt;BR /&gt;&lt;BR /&gt;As usual, it might help if you showed actual&lt;BR /&gt;commands with their actual output instead of&lt;BR /&gt;vague descriptions or interpretations.&lt;BR /&gt;&lt;BR /&gt;Adding "-v" to an "ssh" command can also be&lt;BR /&gt;useful.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] and assigned them the new ip/submask&lt;BR /&gt;&amp;gt; etc... [...]&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] DID I MISS ANYTHING? [...]&lt;BR /&gt;&lt;BR /&gt;The answer to that question might depend on&lt;BR /&gt;what's in that "etc".</description>
      <pubDate>Sun, 24 Jan 2010 14:20:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221260#M531795</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-24T14:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221261#M531796</link>
      <description>Thank you all. As I said in my original posting: THE SSH WORKED WELL WHEN THE CLIENT AND THE SERVER ARE ON DIFFERENT SUBNET. IT JUST STOPPED WORKING WHEN THE BOTH ARE ON THE SAME SUBNET.&lt;BR /&gt;&lt;BR /&gt;When I tried it I used ip address. &lt;BR /&gt;Today I am home and can not give you the failed ssh example because via VPN I am on a different subnet from the hp server and ssh works well. I will post the failed ssh command tomorrow when I get back to the server room.&lt;BR /&gt;&lt;BR /&gt;When I put the server on the network I used "set_parms initial" to set up the ip, subnet mask, default gateway ip and I did not set up DNS name and NDS server ip &lt;BR /&gt;&lt;BR /&gt;Again thanks a lot.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here are the configs&lt;BR /&gt;&lt;BR /&gt;*****  /etc/rc.config.d/netconf  ****&lt;BR /&gt;SUDO&amp;gt;h466-$ cat /etc/rc.config.d/netconf&lt;BR /&gt;HOSTNAME="h466"&lt;BR /&gt;OPERATING_SYSTEM=HP-UX&lt;BR /&gt;LOOPBACK_ADDRESS=127.0.0.1&lt;BR /&gt;&lt;BR /&gt;INTERFACE_NAME[0]=lan0&lt;BR /&gt;IP_ADDRESS[0]=172.20.123.230&lt;BR /&gt;SUBNET_MASK[0]=255.255.0.0&lt;BR /&gt;BROADCAST_ADDRESS[0]=""&lt;BR /&gt;INTERFACE_STATE[0]=up&lt;BR /&gt;DHCP_ENABLE[0]=0&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[0]=default&lt;BR /&gt;ROUTE_MASK[0]=""&lt;BR /&gt;ROUTE_GATEWAY[0]=172.20.0.1&lt;BR /&gt;ROUTE_COUNT[0]=1&lt;BR /&gt;ROUTE_ARGS[0]=""&lt;BR /&gt;&lt;BR /&gt;GATED=0&lt;BR /&gt;GATED_ARGS=""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RDPD=0&lt;BR /&gt;&lt;BR /&gt;RARPD=0&lt;BR /&gt;&lt;BR /&gt;IP_ADDRESS[2]=2.171.120.162&lt;BR /&gt;SUBNET_MASK[2]=255.255.0.0&lt;BR /&gt;INTERFACE_NAME[2]=lan2&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[2]="net 2.0.0.0"&lt;BR /&gt;ROUTE_MASK[2]="255.0.0.0"&lt;BR /&gt;ROUTE_GATEWAY[2]="2.171.1.1"&lt;BR /&gt;ROUTE_COUNT[2]="1"&lt;BR /&gt;BROADCAST_ADDRESS[2]=2.171.255.255&lt;BR /&gt;INTERFACE_STATE[2]=up&lt;BR /&gt;SUDO&amp;gt;h466-$&lt;BR /&gt;*********************  end **************&lt;BR /&gt;&lt;BR /&gt;********* /etc/hosts ***************&lt;BR /&gt;SUDO&amp;gt;h466-$ cat /etc/hosts&lt;BR /&gt;## Configured using SAM by root on Tue Oct 10 11:03:58 2006&lt;BR /&gt;## Configured using SAM by root on Wed Dec 10 13:20:24 2008&lt;BR /&gt;172.20.123.230  h466&lt;BR /&gt;127.0.0.1       localhost       loopback&lt;BR /&gt;SUDO&amp;gt;h466-$&lt;BR /&gt;***************** end *******************&lt;BR /&gt;************* /etc/resolv.conf *******&lt;BR /&gt;SUDO&amp;gt;uguth466-$ cat /etc/resolv.conf&lt;BR /&gt;#domain vent.com&lt;BR /&gt;#nameserver 172.20.13.50&lt;BR /&gt;SUDO&amp;gt;uguth466-$&lt;BR /&gt;****************** end **********************&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Sun, 24 Jan 2010 15:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221261#M531796</guid>
      <dc:creator>newa</dc:creator>
      <dc:date>2010-01-24T15:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221262#M531797</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] IT JUST STOPPED WORKING [...]&lt;BR /&gt;&lt;BR /&gt;YES, AND IF WE KNEW EXACTLY WHAT "STOPPED&lt;BR /&gt;WORKING" MEANT, THEN WE MIGHT BE ABLE TO&lt;BR /&gt;SUGGEST WHY.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] can not give you the failed ssh&lt;BR /&gt;&amp;gt; example [...]&lt;BR /&gt;&lt;BR /&gt;Can you SSH from the HP-UX system to itself?&lt;BR /&gt;(It is on its own subnet, right?)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] and I did not set up DNS name and NDS&lt;BR /&gt;&amp;gt; server ip &lt;BR /&gt;&lt;BR /&gt;Huh?  Does that mean that name and address&lt;BR /&gt;look-ups work or not?</description>
      <pubDate>Sun, 24 Jan 2010 20:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221262#M531797</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-24T20:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221263#M531798</link>
      <description>The ssh failed to connect to 127.0.0.1 &lt;BR /&gt;&lt;BR /&gt;h460:/etc/default # ssh -v dliu@127.0.0.1&lt;BR /&gt;OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006&lt;BR /&gt;HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: permanently_set_uid: 0/3&lt;BR /&gt;debug1: identity file /roothome/.ssh/id_rsa type -1&lt;BR /&gt;debug1: identity file /roothome/.ssh/id_dsa type -1&lt;BR /&gt;ssh_exchange_identification: Connection closed by remote host&lt;BR /&gt;uguth460:/etc/default # ifconfig lan0&lt;BR /&gt;lan0: flags=1843&lt;UP&gt;&lt;BR /&gt;        inet 172.20.123.224 netmask ffff0000 broadcast 172.20.255.255&lt;BR /&gt;h460:/etc/default # ssh -v dliu@172.20.123.224&lt;BR /&gt;OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006&lt;BR /&gt;HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to 172.20.123.224 [172.20.123.224] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: permanently_set_uid: 0/3&lt;BR /&gt;debug1: identity file /roothome/.ssh/id_rsa type -1&lt;BR /&gt;debug1: identity file /roothome/.ssh/id_dsa type -1&lt;BR /&gt;ssh_exchange_identification: Connection closed by remote host&lt;BR /&gt;h460:/etc/default #&lt;BR /&gt;&lt;/UP&gt;</description>
      <pubDate>Mon, 25 Jan 2010 15:19:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221263#M531798</guid>
      <dc:creator>newa</dc:creator>
      <dc:date>2010-01-25T15:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221264#M531799</link>
      <description>&lt;!--!*#--&gt;&amp;gt; ssh_exchange_identification: Connection closed by remote host&lt;BR /&gt;&lt;BR /&gt;Have you looked in the system log file(s)?&lt;BR /&gt;&lt;BR /&gt;Have you tried generating new host keys after&lt;BR /&gt;changing all the network stuff?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006&lt;BR /&gt;&lt;BR /&gt;Probably not the latest version, but old age&lt;BR /&gt;is probably not the biggest problem here.</description>
      <pubDate>Mon, 25 Jan 2010 16:18:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221264#M531799</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-25T16:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221265#M531800</link>
      <description>debug1: identity file /roothome/.ssh/id_rsa type -1&lt;BR /&gt;debug1: identity file /roothome/.ssh/id_dsa type -1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your connection is established, it clearlys states connection established, but then it fails on your rsa key, which is your public key, and your private key, or id_dsa key.  Here, the authentication fails.&lt;BR /&gt;&lt;BR /&gt;Looks like you need to regen the keys including the new hostname's network changes.&lt;BR /&gt;&lt;BR /&gt;See testing section of this link.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gaarai.com/2009/02/19/ssh-tutorial-for-ubuntu-linux/" target="_blank"&gt;http://gaarai.com/2009/02/19/ssh-tutorial-for-ubuntu-linux/&lt;/A&gt;</description>
      <pubDate>Mon, 25 Jan 2010 17:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221265#M531800</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-01-25T17:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221266#M531801</link>
      <description>&lt;!--!*#--&gt;&amp;gt; debug1: identity file /roothome/.ssh/id_rsa type -1&lt;BR /&gt;&amp;gt; debug1: identity file /roothome/.ssh/id_dsa type -1&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; Your connection is established, it clearlys&lt;BR /&gt;&amp;gt; states connection established, but then it&lt;BR /&gt;&amp;gt; fails on your rsa key, which is your public&lt;BR /&gt;&amp;gt; key, and your private key, or id_dsa key.&lt;BR /&gt;&amp;gt; Here, the authentication fails.&lt;BR /&gt;&lt;BR /&gt;Not really.  The SSH client did not find two&lt;BR /&gt;potential expected key files, but that's long&lt;BR /&gt;before it attempted to do any user&lt;BR /&gt;authentication.  These messages are entirely&lt;BR /&gt;harmless, and are unrelated to the actual problem.&lt;BR /&gt;&lt;BR /&gt;Consider, for example, the following&lt;BR /&gt;transcript of a successful session&lt;BR /&gt;establishment:&lt;BR /&gt;&lt;BR /&gt;dy # uname -a&lt;BR /&gt;HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;dy # ssh -V&lt;BR /&gt;OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8l 5 Nov 2009&lt;BR /&gt;HP-UX Secure Shell-A.05.30.007, HP-UX Secure Shell version&lt;BR /&gt;&lt;BR /&gt;dy # ssh -v -l sms alp-l&lt;BR /&gt;OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8l 5 Nov 2009&lt;BR /&gt;HP-UX Secure Shell-A.05.30.007, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to alp-l [10.0.0.9] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: permanently_set_uid: 0/3&lt;BR /&gt;debug1: identity file /root/.ssh/identity type -1&lt;BR /&gt;debug1: identity file /root/.ssh/id_rsa type -1&lt;BR /&gt;debug1: identity file /root/.ssh/id_dsa type -1&lt;BR /&gt;&lt;BR /&gt;[This newer SSH version looks for three key&lt;BR /&gt;files, none of which exists here.  Then it&lt;BR /&gt;continues, beginning the conversation with&lt;BR /&gt;the remote system.  Note that in a working&lt;BR /&gt;configuration, these messages are harmless,&lt;BR /&gt;not fatal.  What's not working in the problem&lt;BR /&gt;case is the stuff below, the handshaking&lt;BR /&gt;between the two systems.]&lt;BR /&gt;&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version 3.2.0 SSH OpenVMS V&lt;BR /&gt;5.5 VMS_sftp_version 3&lt;BR /&gt;debug1: no match: 3.2.0 SSH OpenVMS V5.5 VMS_sftp_version 3&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: AUTH STATE IS 0&lt;BR /&gt;debug1: REQUESTED ENC.NAME is 'aes128-cbc'&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: REQUESTED ENC.NAME is 'aes128-cbc'&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: sending SSH2_MSG_KEXDH_INIT&lt;BR /&gt;debug1: expecting SSH2_MSG_KEXDH_REPLY&lt;BR /&gt;debug1: Host 'alp-l' is known and matches the DSA host key.&lt;BR /&gt;debug1: Found key in /root/.ssh/known_hosts:10&lt;BR /&gt;debug1: ssh_dss_verify: signature correct&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;&lt;BR /&gt;@ SYS$MANAGER:ANNOUNCE.TXT&lt;BR /&gt;&lt;BR /&gt;[That's the (defective) greeting from the&lt;BR /&gt;remote system.  Basic handshaking is now&lt;BR /&gt;complete.  _Now_ user authentication begins.]&lt;BR /&gt;&lt;BR /&gt;debug1: Authentications that can continue: hostbased,publickey,password&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /root/.ssh/identity&lt;BR /&gt;debug1: Trying private key: /root/.ssh/id_rsa&lt;BR /&gt;debug1: Trying private key: /root/.ssh/id_dsa&lt;BR /&gt;&lt;BR /&gt;[Again, the expected key files are not found,&lt;BR /&gt;so publickey authentication fails, so we move&lt;BR /&gt;along to the next authentication method,&lt;BR /&gt;password...]&lt;BR /&gt;&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;sms@alp-l's password:&lt;BR /&gt;debug1: Authentication succeeded (password).&lt;BR /&gt;&lt;BR /&gt;[I provided the correct password, so password&lt;BR /&gt;authentication succeeded, and so the&lt;BR /&gt;interactive session begins...]&lt;BR /&gt;&lt;BR /&gt;debug1: Final hpn_buffer_size = 131072&lt;BR /&gt;debug1: HPN Disabled: 1, HPN Buffer Size: 131072&lt;BR /&gt;debug1: channel 0: new [client-session]&lt;BR /&gt;debug1: Entering interactive session.&lt;BR /&gt;&lt;BR /&gt;      Welcome to VMS (Alpha) V8.3 on ALP.&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ssh_exchange_identification: Connection closed by remote host&lt;BR /&gt;&lt;BR /&gt;While this does not show a user&lt;BR /&gt;authentication problem, it does suggest some&lt;BR /&gt;configuration problem, possibly involving the&lt;BR /&gt;old host keys, as previously suggested.</description>
      <pubDate>Tue, 26 Jan 2010 05:06:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221266#M531801</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-26T05:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221267#M531802</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Have you looked in the system log file(s)?&lt;BR /&gt;&lt;BR /&gt;On my 11.11 system, I see SSH-related&lt;BR /&gt;messages in "/var/adm/syslog/syslog.log".&lt;BR /&gt;(Mine show success, but I'd still expect to&lt;BR /&gt;find useful info there if there's a problem.)</description>
      <pubDate>Tue, 26 Jan 2010 05:19:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221267#M531802</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-26T05:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221268#M531803</link>
      <description>Thanks all for your help. I found out the culprit was tcp wrapper (/etc/hosts.allow file)&lt;BR /&gt;&lt;BR /&gt;On the server I did:&lt;BR /&gt;&lt;BR /&gt;sshd -d -d -d -r -p 2222&lt;BR /&gt;&lt;BR /&gt;on the same box I did:&lt;BR /&gt;&lt;BR /&gt;ssh -vv -p 2222 127.0.01&lt;BR /&gt;&lt;BR /&gt;The the server console wrote to console:&lt;BR /&gt;connection refused by tcp wrapper.&lt;BR /&gt;&lt;BR /&gt;I got the idea from openSSH O'reily book. :)</description>
      <pubDate>Wed, 27 Jan 2010 02:46:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221268#M531803</guid>
      <dc:creator>newa</dc:creator>
      <dc:date>2010-01-27T02:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221269#M531804</link>
      <description>Closing it</description>
      <pubDate>Wed, 27 Jan 2010 02:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221269#M531804</guid>
      <dc:creator>newa</dc:creator>
      <dc:date>2010-01-27T02:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not work when ssh client and server are on the same subnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221270#M531805</link>
      <description>&lt;!--!*#--&gt;&amp;gt; On the server I did:&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; sshd -d -d -d -r -p 2222&lt;BR /&gt;&amp;gt; [...] &lt;BR /&gt;&amp;gt; The the server console wrote to console:&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;And before, I'd guess that it was writing a&lt;BR /&gt;similar complaint to the log file, but if you&lt;BR /&gt;don't look, then you're unlikely to find.</description>
      <pubDate>Wed, 27 Jan 2010 06:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-work-when-ssh-client-and-server-are-on-the-same/m-p/5221270#M531805</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-27T06:55:35Z</dc:date>
    </item>
  </channel>
</rss>

