Skip to main content

Installation and management of SSH

SSH server is a software that allows you to manage computers from distance. Today I will install it and show you how to create a new account with a webpage.

Installing SSH

I started installing SSH with the command sudo apt-get install openssh-server (Like everytime it is still important update your package list before installation (sudo apt-get update).)

After this I tested my server and logged in with my own account. Since I am using the live Cd I need to create a password first or I am not able to continue very far (can be done with passwd). If you are not sure about your username you can simply check it by running the command whoami.


I logged in as xubuntu ssh xubuntu@localhost. The connection had been created and so far everything seemed to be fine. Time to create a new account!

Creating an account

sudo adduser [username] is the needed command when creating a new account. In my case I created a test user called maryrascal, so I typed sudo adduser maryrascal in my Terminal.


At this point we can add some additional information about the user (you should at least write the full name). Remember to choose your password carefully - it should contain both lower and upper case letters, special characters and numbers. In ideal case the password doesn't resemble of a real word and is fairly long, more than 8 characters.

When creating a webpage for a new user you must have Apache installed on your computer (more information from my previous post). 

I made sure I was logged in as maryrascal and created a directory mkdir public_html and put there a file nano index.html for the webpage. If everything goes as it should the site will appear to localhost/~maryrascal. 

Finally I checked that the access rights of these files really belong to maryrascal and not to root by writing ls -l.


Analyzing the AuthLog

The AuthLog is located in cd /var/log and can be read with tail auth.log and it contains all the user logins.

Logging in SSH successfully

On September 26nd at 15:14:34 o'clock (GTM+0) in xubuntu's server the accepted password was entered and the session opened for user maryrascal.

Logging in SSH failed

On September 26nd at 15:12:25 o'clock (GTM+0) in xubuntu's server a wrong password was entered totally 3 times.

Using sudo succesfully

On September 26nd at 15:18:16 o'clock (GTM+0) xubuntu used a sudo command in directory /home/xubuntu as root user with a command sudo apt-get update.

Using sudo failed

On September 26nd at 15:20:59 o'clock (GTM+0) maryrascal (who is NOT a sudoer) tried to run a sudo command in /home/maryrascal with sudo apt-get install tetris but this command couldn't be executed because there wasn't such a file or directory existing and the session was closed. 


System information - OS: Windows 8 64bit Manufacturer: Dell Inc.Model: Inspiron 3721 BIOS: A05 Processor: Intel(R) Core(TM) i5-3337U CPU @ 1.80GHz (4 CPUs), ~~1,8GHz Memory: 8192MB RAM

Based on Linux course by Tero Karvine (http://terokarvinen.com/)

Comments

Popular posts from this blog

Building Love-O-Meter by using a temperature sensor

This "Love-O-Meter" is based on the tutorial by Arduino and it comes with the starter kit. It uses a temperature sensor to measure the warmth of your skin and then starts to turn on (or off) the LEDs  indicated by the temperature.

The components Arduino UNOBreadboardJumper wiresLEDs220 ohm resistorsTMP36 temperature sensor

Building the Circuit
At first I ran the "Hello World" for Arduino to make sure the environment would work as expected. Now I could start to connect the jumper wires between Arduino UNO and the breadboard.

As usually I connected the breadboard to power (5V) and to the ground (GND). I inserted the TMP36 on the breadboard so the rounded part of the sensor would face away from Arduino.

I attached 3 LED lights and the resistors and connected them with Arduino. The lights should react to the heat of the finger and if the temperature would get hot enough all the lights would be on and would also tell you if you are a hot lover or not...

The result and the …

Using a button to control the LED light

This time my project was to configure how to build a button that would turn on and off depending if the user is pushing it or not. While holding the button down the LED should stay on until removing the finger.



For this assignment I used the fallowing components:
Arduino UNO and USBJumper wiresLED lightBreadboardButton10k ohm resistor
At first I run the "Hello World" for Arduino and made sure that the LED I was using worked properly (read my previous post).

I attached the button in the middle of the breadboard so the legs were touching the both "sides" of it.


Now I started to connect the jumper wires between the Arduino UNO and the breadboard. In order to get it working like in the sample code (Ardoino > Examples > 02.Digital > Button)
I linked the wires with Arduino's 5V (red wire, positive) and ground (black wire, negative) to the equal holes on the very corner of the breadboard (+ and -). I put the white jumper wire to connect the positive circuit to t…

Creating a Bootable USB for Kali Linux

If you are interested to see my documentation about making a bootable USB for Xubuntu please click here!

This USB was made by using the latest version of Xubuntu (the 14.04 release).

Downloading Kali Linux 
23.13. After navigating to https://www.kali.org/ I chose the version that would suit me the best and started downloading the ISO image for 64-Bit system.


USB imaging
22.40. I followed the guide offered by kali.org and used the commandsudo fdisk -lwithout plugging the USB yet. I needed to pay attention to the path of Device Boot (/dev/sdb1). After this I inserted USB and ran the same command again. Now I could see how the name of Device Boot had changed to sdc1. This would be my USB to use.

22.50 It only took a while to format the dd code correctly as the base was already given on Kali's web page. After running the correct command for the first time I got an error message "'/dev/sdc1': Permission denied". In these kind of situations I tend to ask sudo for help an…