Showing posts with label SSH. Show all posts
Showing posts with label SSH. Show all posts

Monday, January 07, 2008

ssh warning

This is not a big thing, but sometime this small things matter a lot.

You can put a message on remote ssh login for user or it will just act as a warning for a defaulters.

Steps:
1. Open a file using : emacs /etc/motd and write a messge you want
e.g.
********************************************************************
* *
* This system is for the use of authorized users only. Usage of *
* this system may be monitored and recorded by system personnel. *
* *
* Anyone using this system expressly consents to such monitoring *
* and is advised that if such monitoring reveals possible *
* evidence of criminal activity, system personnel may provide the *
* evidence from such monitoring to law enforcement officials. *
* *
********************************************************************
==========================================================
Unauthorized access to this machine is prohibited
Press if you are not an authorized user

2. Save the file and exist.
3. Restart the ssh service using. #service sshd restart

Monday, April 23, 2007

Change the default port for SSh user

Default port for SSH user is 22. But we can change the default port to some another port.
eg. I want to run ssh service on port 99 instead of 22.

Make the following change.

open files
#emacs /etc/ssh/ssh_config
#emacs /etc/ssh/sshd_config

search for port ie is default port = 22

make port = 99

or

You can run on any port, But make sure other service not running on that port.

Basics of Kubernetes

 Kubernetes, often abbreviated as K8s , is an open-source platform designed to automate the deployment, scaling, and management of container...