Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Another issue. When I do a
chage -d 0 -M 999 <username>
we are assuming that the user is going to have a direct access to the machine's console so will be prompted for a change password stuff by the system. But when the user tries this with "ssh" session, he gets bombed out when first time logging in. It asks for password first time and when he enters the right password, it says that
Server responded "Connection closed".
Connection to the remote host was lost.
and nothing more. This is because SSH does not know how to handle the change password.
Changed the password for one of the users and tried to log in using ssh:
$ ssh -l someuser inferno
someuser@inferno's password:
Password changing requested. Choose a new password.
Warning: Your password has expired, please change it now
Old Password:
New password:
Re-enter new password:
Password changed
No problems whatsoever. Did you check the ssh settings?
Sorry. I forgot to mention that the SSH that I was talking about is the ssh client on windows side. Do you think it will still work if somebody tries to connect from a windows box to this linux ws using ssh client?
i was not successful atleast.
Please reply when convenient. Thanks
I haven't used windows in over 5 years, so windows related questions I cannot (or hardly) answer. I will give it a try:
I've heard about a program called putty that is suposed to be a good ssh client for windows.
Will it allow users to change their password? I really don't know. But if I guess it seems logical that it should. Passwords should change on a regular base and if your only access is an ssh client.......
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.