<?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: Date Command: Telnet &amp;amp; SSH Differ in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935605#M112559</link>
    <description>hmmm.&lt;BR /&gt;&lt;BR /&gt;/etc/profile sources for certain when a user telnets in.&lt;BR /&gt;&lt;BR /&gt;ssh.  Looks like it sources the file too.&lt;BR /&gt;&lt;BR /&gt;my echo $TZ shows the same value whether I connect via ssh or telnet.&lt;BR /&gt;&lt;BR /&gt;I did this:&lt;BR /&gt;&lt;BR /&gt;env &amp;gt; telnet.env with the telnet session.&lt;BR /&gt;env &amp;gt; ssh.env with the ssh login&lt;BR /&gt;&lt;BR /&gt;diff ssh.env telnet.env&lt;BR /&gt;&lt;BR /&gt;[5003#] diff ssh.env telnet.env&lt;BR /&gt;4d3&lt;BR /&gt;&amp;lt; SSH_TTY=/dev/pts/0&lt;BR /&gt;11d9&lt;BR /&gt;&amp;lt; USER=root&lt;BR /&gt;16d13&lt;BR /&gt;&amp;lt; SSH_CLIENT=10.1.11.60 49692 22&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, there should not be differences.&lt;BR /&gt;&lt;BR /&gt;I know this probably isn't helpful but it must be something else.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 25 Mar 2003 21:53:17 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-03-25T21:53:17Z</dc:date>
    <item>
      <title>Date Command: Telnet &amp; SSH Differ</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935600#M112554</link>
      <description>One of the oddest things i've seen in awhile, why does a USER LOGIN under SSH show a different output than under TELNET?&lt;BR /&gt;&lt;BR /&gt;under telnet connect: &lt;BR /&gt;$ Tue Mar 25 16:02:34 EST 2003&lt;BR /&gt;which is wrong!&lt;BR /&gt;&lt;BR /&gt;under ssh connect:&lt;BR /&gt;Tue Mar 25 13:06:59 PST 2003&lt;BR /&gt;which is correct&lt;BR /&gt;&lt;BR /&gt;How do I fix/ adjust telnet to give the correct time? &lt;BR /&gt;&lt;BR /&gt;And I thought that date/time were controlled by set_parms timezone, etc/profile, /etc/TIMEZONE and .profile, .login, .cshrc settings... &lt;BR /&gt;&lt;BR /&gt;-karlski</description>
      <pubDate>Tue, 25 Mar 2003 21:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935600#M112554</guid>
      <dc:creator>Karl Balsmeier</dc:creator>
      <dc:date>2003-03-25T21:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Command: Telnet &amp; SSH Differ</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935601#M112555</link>
      <description>Hi karlski,&lt;BR /&gt;&lt;BR /&gt;As soon as you connect - either way - do&lt;BR /&gt;&lt;BR /&gt;echo $TZ&lt;BR /&gt;&lt;BR /&gt;This is the env parm that controls how time/date will be *displayed*.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 25 Mar 2003 21:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935601#M112555</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-03-25T21:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date Command: Telnet &amp; SSH Differ</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935602#M112556</link>
      <description>check /etc/profile and see what TZ is set to?</description>
      <pubDate>Tue, 25 Mar 2003 21:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935602#M112556</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2003-03-25T21:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date Command: Telnet &amp; SSH Differ</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935603#M112557</link>
      <description>I have actually checked and corrected all the normal files.  What is interesting is that I just logged in as root under telnet and ran the date command, it appears to have fixed the problem.  &lt;BR /&gt;&lt;BR /&gt;This appears to be related in some odd way to telnet itself not picking up the timezone adjustments as they are normally done with the typical files/commands.  Does anyone know if telnetd caches the time if say, a machine is set to EST and then switches to PST?&lt;BR /&gt;&lt;BR /&gt;-karl</description>
      <pubDate>Tue, 25 Mar 2003 21:43:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935603#M112557</guid>
      <dc:creator>Karl Balsmeier</dc:creator>
      <dc:date>2003-03-25T21:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date Command: Telnet &amp; SSH Differ</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935604#M112558</link>
      <description>The telnet daemon itself has absolutely nothing to do with displaying the date.  As said, the date display is controlled by the TZ environment variable.  Once the variable is set for a session, it does not change unless you explicitly change it.&lt;BR /&gt;&lt;BR /&gt;The /etc/TIMEZONE, if the file exists, is your default timezone (have a look at /etc/profile).  BUT the user can change this in his / her environment by setting TZ in their own .profile, .cshrc, or whatever is appropriate for their shell.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Mar 2003 21:50:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935604#M112558</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-03-25T21:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date Command: Telnet &amp; SSH Differ</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935605#M112559</link>
      <description>hmmm.&lt;BR /&gt;&lt;BR /&gt;/etc/profile sources for certain when a user telnets in.&lt;BR /&gt;&lt;BR /&gt;ssh.  Looks like it sources the file too.&lt;BR /&gt;&lt;BR /&gt;my echo $TZ shows the same value whether I connect via ssh or telnet.&lt;BR /&gt;&lt;BR /&gt;I did this:&lt;BR /&gt;&lt;BR /&gt;env &amp;gt; telnet.env with the telnet session.&lt;BR /&gt;env &amp;gt; ssh.env with the ssh login&lt;BR /&gt;&lt;BR /&gt;diff ssh.env telnet.env&lt;BR /&gt;&lt;BR /&gt;[5003#] diff ssh.env telnet.env&lt;BR /&gt;4d3&lt;BR /&gt;&amp;lt; SSH_TTY=/dev/pts/0&lt;BR /&gt;11d9&lt;BR /&gt;&amp;lt; USER=root&lt;BR /&gt;16d13&lt;BR /&gt;&amp;lt; SSH_CLIENT=10.1.11.60 49692 22&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, there should not be differences.&lt;BR /&gt;&lt;BR /&gt;I know this probably isn't helpful but it must be something else.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 25 Mar 2003 21:53:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935605#M112559</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-25T21:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Command: Telnet &amp; SSH Differ</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935606#M112560</link>
      <description>Someone told me that ssh does NOT run /etc/profile. If that is true, could it be the source of your problem?</description>
      <pubDate>Tue, 29 Jul 2003 22:10:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-command-telnet-amp-ssh-differ/m-p/2935606#M112560</guid>
      <dc:creator>Sorrel G. Jakins</dc:creator>
      <dc:date>2003-07-29T22:10:26Z</dc:date>
    </item>
  </channel>
</rss>

