- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to config the ssh?
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
06-24-2004 02:35 PM
06-24-2004 02:35 PM
I find the file--"/opt/ssh/etc/sshd_config".
but I can't find a item about login timeout.
In fact,I just want to refuse the user when he key nothing after login in. How to do it?
help me,thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 02:53 PM
06-24-2004 02:53 PM
Solutiondo u mean Idle Timeout? if so,
for particular users:
# vi ~/.profile
add the following lines to the end of the file:
TMOUT=60
readonly TMOUT
for all users:
# vi /etc/profile
add the following lines to the end of the file:
TMOUT=60
readonly TMOUT
note that 60 is in seconds.
regards.
(p.s. please remember to assign points.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 03:37 PM
06-24-2004 03:37 PM
Re: How to config the ssh?
Thank you,I modify the profile.then the ssh user login out 60s later,And the user can get a warning "Shell will time out in 60 seconds".
But I worry about that the modification maybe impact other user,DBA user,etc.This user must always login in the system.In other words,the modification can effect some users and some software,I want to know detail,because the machine is very important!thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 06:12 PM
06-24-2004 06:12 PM
Re: How to config the ssh?
r u saying u only want some users to have this time-out feature? if so, just edit the .profile of those who requires TMOUT.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 10:35 PM
06-24-2004 10:35 PM
Re: How to config the ssh?
if you placed it into $HOME/.profile you needn't be afraid because setting there is for particular user only.
(for global setting for all users is /etc/profile)
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2004 05:29 AM
06-26-2004 05:29 AM
Re: How to config the ssh?
You should also note that if a user simply enters: read
at the shell prompt, timeout is disabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2004 08:28 PM
06-26-2004 08:28 PM
Re: How to config the ssh?
You can do it for few users if you want to by putting a small shell code in /etc/profile ( /etc/csh.login for c-shell users). For ex., create a file called /etc/logins.tmout like the following
user1:60
user2:120
user3:180
Add the following code at the end of your /etc/profile.
ME=$(who am i|awk '{print $1}')
grep -q "^${ME}:" /etc/logins.tmout
if [ $? = 0 ]
then TMOUT=$(grep "^${ME}:" /etc/nologins.tmout}awk '{print $2}')
readonly TMOUT
else
TMOUT=
readonly TMOUT
fi
In the else part above, specify the global timout value that you want to set to rest of the users. If you don't want it, delete that part.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2004 08:37 PM
06-27-2004 08:37 PM
Re: How to config the ssh?
In fact,I just want to modify sshd_config to the target.I use "man sshd_config" finded a key item "ClientAliveInterval".I config this file,but inefficacy,how to correct use it,who can help me!
$man sshd_config
Sets a timeout interval in seconds after which if no data has
been received from the client, sshd will send a message through
the encrypted channel to request a response from the client. The
default is 0, indicating that these messages will not be sent to
the client. This option applies to protocol version 2 only.