Task 1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

1. Task 1.

SSH in Ubuntu
i. To install it, open terminal (Ctrl+Alt+T) or log in Ubuntu server and run command:
 sudo apt-get install openssh-server
ii. After that, you should have SSH service enabled in your system, you may check its status
by running command:
 sudo service ssh status
iii. You may change some settings (e.g., the listening port, and root login permission) by
editing the configuration file via command:
 sudo nano /etc/ssh/sshd_config
iv. Finally apply the changes by restarting or reloading SSH:
 sudo service ssh restart

2. Task 2.
To download the copssh free edition and install it on your computer
Download PUTTY application and open on your computer

Specify the destination you want to connect to e.g. localhost, cive.


Testing the Server
Before opening the SSH port on your firewalls you can test the server by connecting from a
client program on the same PC using the host address of localhost or the IP address of the PC.
You can use standard SSH and SFTP clients like PuTTY, WinSCP or FileZilla.

3. ENABLE SSH ON A CISCO ROUTER


Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#crypto
% Incomplete command.
Router(config)#crypto ?
dynamic-map Specify a dynamic crypto map template
ipsec Configure IPSEC policy
isakmp Configure ISAKMP policy
key Long term key operations
map Enter a crypto map
Router(config)#hostname R1
R1(config)#ip domain name nick.net
R1(config)#crypto key generate isa
^
% Invalid input detected at '^' marker.
R1(config)#crypto key generate rsa
The name for the keys will be: R1.nick.net
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]: 1024


% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

R1(config)#
*Mar 1 0:3:38.367: %SSH-5-ENABLED: SSH 1.99 has been enabled
R1(config)#do show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
R1(config)#interface fa0/0
R1(config-if)#ip address 172.16.0.1 255.255.0.0
R1(config-if)#no shutdown

show that you can SSH into the Cisco switch by using the SSH client from a window machine
steps:
a) Click Open to begin the SSH connection with the switch.
b) If this is your first time using SSH to connect to the switch, you may receive a Security
Breach Warning. This warning lets you know that it is possible that you are connecting
to another computer pretending to be the switch. Once you have ensured you entered the
correct ip address in the Host Name field in Step 3, click Yes to update the rsa2 key to
include the new switch
c) Enter the name you wish to log in with when you are prompted to do so.
d) Enter the user name and password to connect to the device when prompted to do so. The
default user name is cisco and the default password is cisco.

1) Configure FTP service in window server


 In Windows Server Manager go to Roles node and in Roles Summary panel click Add
Roles.
 In Add Roles wizard:
o Proceed to Server Roles step and check Web Server (IIS) role.
o Proceed to Role Services step and check FTP Server > FTP Service role service.
Uncheck Web Server role service, if you do not need it. Make sure Management
Service > IIS Management Console role service is checked.
o Proceed to the end of the wizard and click Install.
o Wait for the installation to complete.
If you have IIS installed already (i.e. as a Web Server):
 In Windows Server Manager go to Roles node and in Web Server (IIS) > Role Services
panel click Add Role Services.
 In Add Role Services wizard:
o Check FTP Server > FTP Service role service.
o Make sure that Management Service > IIS Management Console is checked.
o Confirm with Next button.
o Proceed to the end of the wizard and click Install.
o Wait for the installation to complete.

Configure FTP service in a linux box

Step 1: We will use localhost for our machine to setup ftp server.

Step 2: Install vsftpd (very secure FTP daemon) package.

yum install -y vsftpd

Step 3: Start FTP Server when system on.

systemctl enable vsftpd.service

Step 4: Checking the status of ftp server

systemctl status vsftpd.service

Step 5: Configure vsftpd package. We will edit


/etc/vsftpd/vsftpd.conf

Change the line which contain anonymous_enable=NO to anonymous_enable=YES


This will give permit any one to access FTP server with authentication.
Change the following to YES
local_enable=YES
write_enable=YES<br>
Step 6: Start FTP Server
systemctl start vsftpd.service

Step 7: Install FTP Client


yum install -y lftpd

Step 8: Connect ftp to localhost


lftp localhost

You might also like