Professional Documents
Culture Documents
SSH Assignment (52211119471 MuhammadAqeef)
SSH Assignment (52211119471 MuhammadAqeef)
ASSIGNMENT [No.]:
[SSH Assignment]
SUBMISSION DATE:
[19 October 2021]
GROUP:
L02
PREPARED FOR:
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)
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.