- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SSH & Telnet time zone problem
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
Discussions
Discussions
Forums
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
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
тАО09-02-2010 08:12 AM
тАО09-02-2010 08:12 AM
I have HP-UX 11.31 with strange problem:
When i telnet to this machine and run "date" i get the correct time zone i defined, but with ssh the time zone is different.
Any idea?
Thanks,
Tal
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2010 08:45 AM
тАО09-02-2010 08:45 AM
Solution(One of the main reasons for the recommendation to reboot the system after changing fundamental system settings like hostname, IP address(es) and timezone, is to avoid situations like this.)
Quick fix: login to the system and become root.
Make sure your session's current timezone setting is correct. If it isn't, set the TZ environment variable to the correct system default timezone by running this command:
. /etc/TIMEZONE
Then stop and restart sshd:
sh /sbin/init.d/secsh stop
sh /sbin/init.d/secsh start
If this does not help, read the sshd start-up script (/sbin/init.d/secsh in the case of HP Secure Shell) to make sure someone hasn't added extra commands to override the TZ value for sshd.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2010 06:16 AM
тАО09-03-2010 06:16 AM
Re: SSH & Telnet time zone problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2010 09:38 AM
тАО09-03-2010 09:38 AM
Re: SSH & Telnet time zone problem
Have you defined TZ in your .profile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2010 10:15 PM
тАО09-06-2010 10:15 PM
Re: SSH & Telnet time zone problem
I tried all the above with no results.
Finally, I run the "set_parms timezone" (same as after fresh install) and the problem solved!
Thanks for all the efforts,
Tal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2010 10:19 PM
тАО09-06-2010 10:19 PM