ComTech: IT Support Stirling
TwitterFacebookGoogle

How to configure basic passwords and a hostname on a Cisco switch


Today I will show you how to configure basic passwords and a hostname on a Cisco switch.  For this tutorial you are going to have to open up a console session to your switch.

First we need to set an enable password:

Switch>enable

Switch#configure terminal

Switch(config)#enable secret c7ed2bd92a (sets enable password)

 

Now we need to set the hostname of the switch:

Switch(config)#hostname Comtech1 (sets the switch hostname to Comtech1)

 

Next we need to configure console access:

Comtech1(config)#line console 0

Comtech1(config-line)#password bob2 (sets console password to bob2)

Comtech1(config-line)#login

Comtech1(config-line)exit

 

We will now set passwords for ssh and telent access to the switch:

Comtech1(config)#line vty 0 15

Comtech1(config-line)#password BigBlue (sets ssh and telnet password to BigBlue)

Comtech1(config-line)#login

Comtech1(config-line)#exit

Comtech1(config)#exit

For the changes to take effect we have to save them in the startup-config file so:

Comtech1#copy running-config startup-config

And that’s it.  Next time you connect to your switch either through a console, shh or telnet session you will be asked for the relevant passwords.

About the Author

P1020114

Hi I’m Chris Wakefield the owner of ComTech IT Support. I provide Windows, Mac and Linux based IT Support to small businesses in Stirling, Alloa and Falkirk.

Follow @Comtech247 on Twitter

 

 

SSH on Linux

Today we will have a look at SSH, primarily on Linux.  This tutorial will show you how to ssh to a server called Server1 (ip address 192.168.1.2) from a PC called PC1 (ip address 192.168.1.3) both on the same network and both running Linux Mint 16.

Most modern Linux distributions come with ssh installed by default but if not you will need the following packages:

ssh (so you can ssh clients from your machine)

openssh-server (allowing remote access to your machine).

You will need to install openssh-server on Server1 and ssh on PC1.  Before we can connect to Server1 open up port 22 on any firewalls between PC1 and Server1 (including any routers).

Once installed open up a terminal on PC1 and type:

ssh (username)@192.168.1.2 or alternatively ssh (username)@Server1

replacing (username) with a valid user on Server1.  You will be asked for a password so when prompted enter the users password.  Once done you will be connected to Server1. It is that easy!!

So that is internal on the same network how do we do it over the internet?  You will need to find out the address of your router and then port forward to your Servers internal ip address. For example to ssh to Server1 over the internet you would type the following:

ssh user@routers_ip_address

replacing user with a valid user on Server1.  If you have opened port 22 on the router and forwarded any ssh traffic to Server1 at ip 192.168.1.2 then you would be connected to Server1.


About the Author

P1020114

Hi I’m Chris Wakefield the owner of ComTech IT Support. I provide Windows, Mac and Linux based IT Support to small businesses in Stirling, Alloa and Falkirk.

Follow @Comtech247 on Twitter

 

SSH on Windows


We have looked in the past at using SSH on Linux but today we shall use SSH on Windows, primarily Windows 7.  For this tutorial I will be using a Linux Server (ip address 192.168.1.2) and a windows client.

First thing we need is an SSH client for the windows machine.  The best one I have come across is PuTTY.  PuTTY is an open source telnet /ssh client and and can be downloadedhere.

Once downloaded and installed you should get the following PuTTY configuration screen;

Internal Network

Make sure that the SSH box is ticked and insert the ip address or hostname of the server you wish to connect to and then click on open.  You will be asked for the username and password of an account on the server.

Over the Internet

You will need to open port 22 on your router and forward any ssh traffic to the server you want to access (in this case 192.168.1.2).  So this time the ip address will be the router’s ip address and not the servers ip address.

In both cases, internal or over the internet, you will need to open port 22 on any firewalls that are active.

About the Author

P1020114

Hi I’m Chris Wakefield the owner of ComTech IT Support. I provide Windows, Mac and Linux based IT Support to small businesses in Stirling, Alloa and Falkirk.

Follow @Comtech247 on Twitter

 

 

CyberChimps
Follow

Get every new post delivered to your Inbox

Join other followers

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera
WP Like Button Plugin by Free WordPress Templates