You are on page 1of 6

SUBJECT:

[IBB22403] – [OPERATING SYSTEM ADMINISTRATION]

ASSIGNMENT [No.]:
[SSH Assignment]

SUBMISSION DATE:
[19 October 2021]

GROUP:
L02

NAME: MUHAMMAD AQEEF BIN AZMI


STUDENT ID: 52211119471
PROGRAM: BACHELOR OF ENGINEERING
TECHNOLOGY (HONS) IN NETWORKING
SYSTEMS
CONTACT: 0195620035

PREPARED FOR:

[AZMI BIN AHMAD]


1. Make sure
in Your
CentOS
Settings in
System
tab, In Boot
Order
section,
tick Network.
This is
because in
order to
SSH to the
Guest, it
need
network
access.

2. In your Settings, inside your network tab, in adapter 1, make sure to enable network
adapter.
3. Make sure the Attach to is NAT
4. Go to command prompt in windows, type ipconfig to know what is the ip address for
your virtualbox(Note: Ip address is different in different area)
5. Ping ip address for your virtualbox to check whether it can successfully connect to the
virtualbox
6. Ping 127.0.0.1. (127.0.0.1 Is host ip. You can be using the same ip address for ssh)

7. Start your CentOS.


8. Go to Terminal and type ip a to know the ip address for your CentOS.(Note: Ip
address for CentOS is different than Ip address for VirtualBox)
9. In encps3, it show your ip address for CentOS
10. Ping the address
11. Ping your virtualbox ip address (Reminder: this is different for every computer).
12. Power off your CentOS.

13. Go to the Setting > Network, click Advanced and then Port Forwarding
14. Enter the following information :
Name : SSH
Protocol : TCP
Host IP : 127.0.0.1
Host Port : 5627
Guest IP : 10.0.2.15
Guest Port : 22
15. Start CentOS
16. Go to Terminal, type sudo bash to enter root and type systemctl status sshd.
17. Systemctl status sshd is command to know whether your ssh is still active or not.
18. Type ip a and look for encps8. If there is not ip address.
19. Move your cursor to your ethernet and on your encps8, click connect.
20. Type again ip a and look for encps8, this time there will be ip address
21. Remember the ip address.
22. Power off CentOS.

21. Go to File > Host Network Manager in your VirtualBox, change your previous ip
address to the ip address in your CentOS.
23. Go to cmd in your window, and type ipconfig to see whether your virtualbox host-
only network has changed

24. Ping the ip address that you set to see it can connect or not.

25. Open your CentOS and login


26. In your cmd in window, type ssh [username]@127.0.0.1 –p 5679
27. It will get Are you sure you want to continue connecting. (yes/no). Type yes.
28. And you will login into your centos terminal from your window cmd.

You might also like