Monday, November 9, 2009

Installing SSH to remote Ubuntu 9.10 server

Now i have installed Ubuntu server 9.10 and i am ready to start configuring it. Since i don't have any computer screen or keyboard connected to the server i want to be able to remote it with SSH.
So before i put it in my closet i am going to configure SSH.
I start with installing openssh server on it with
Since I am going to use the root account for a while now i am going to start a Root shell instead of wighting sudo all the time.
sudo -i
then i install the server
apt-get install openssh-server


After the install was complete i configured the sshd_config file under /etc/ssh
vi /etc/ssh/sshd_config
then i used 'i' to input text to the document
PermitRootLogin NO
AllowUsers (Username), (username)


After i made the changes i saved and quit :wq! to save and quit in vi.
after this i just restarted ssh and the server was ready to be put in the closet.
service ssh restart

No comments:

Post a Comment