0% found this document useful (0 votes)
2 views

Server_Access_Guide

This document provides a comprehensive guide on accessing HTTP, FTP, SMTP, and TELNET servers, including step-by-step instructions for logging in and executing commands. It also includes methods for verifying server status and troubleshooting potential issues. Additionally, it outlines how to access these servers from another computer and manage firewall settings accordingly.

Uploaded by

S'fiso Mzilikazi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Server_Access_Guide

This document provides a comprehensive guide on accessing HTTP, FTP, SMTP, and TELNET servers, including step-by-step instructions for logging in and executing commands. It also includes methods for verifying server status and troubleshooting potential issues. Additionally, it outlines how to access these servers from another computer and manage firewall settings accordingly.

Uploaded by

S'fiso Mzilikazi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Guide to Accessing HTTP, FTP, SMTP, and TELNET Servers

## 1. HTTP Server (Apache)

### Access the HTTP Server


1. Open a browser on your Ubuntu machine or another computer.
2. Enter the following URL:
http://localhost
or (if accessing from another computer):
http://<server-ip>

Example: http://192.168.1.100

3. Log in using:
- Username: maxoli, Password: @maxoli
- Username: mmeli, Password: @mmeli
- Username: talente, Password: @talente

## 2. FTP Server (vsftpd)

### Access the FTP Server


1. Open a terminal.
2. Use the ftp command:
ftp localhost
or (from another computer):
ftp <server-ip>

Example: ftp 192.168.1.100

3. Log in using:
- Username: maxoli, Password: @maxoli
- Username: mmeli, Password: @mmeli
- Username: talente, Password: @talente

4. Test commands:
- ls (List files)
- put <file> (Upload a file)
- get <file> (Download a file)
- bye (Exit FTP)

## 3. SMTP Server (Postfix)

### Access the SMTP Server


1. Open a terminal.
2. Use the telnet command:
telnet localhost 25
or (from another computer):
telnet <server-ip> 25

Example: telnet 192.168.1.100 25

3. Test SMTP commands:


- EHLO miyaki
- MAIL FROM: <[email protected]>
- RCPT TO: <[email protected]>
- DATA (Enter email content)
- QUIT (Exit SMTP session)

## 4. TELNET Server

### Access the TELNET Server


1. Open a terminal.
2. Use the telnet command:
telnet localhost
or (from another computer):
telnet <server-ip>
Example: telnet 192.168.1.100

3. Log in using:
- Username: maxoli, Password: @maxoli
- Username: mmeli, Password: @mmeli
- Username: talente, Password: @talente

4. Test commands:
- ls (List files)
- pwd (Print working directory)
- logout (Exit session)

## 5. Verify All Servers Are Running

### Check Service Status


- HTTP: sudo systemctl status apache2
- FTP: sudo systemctl status vsftpd
- SMTP: sudo systemctl status postfix
- TELNET: sudo systemctl status xinetd

### Check Open Ports


- sudo netstat -tuln | grep -E '(:80|:21|:25|:23)'

## 6. Access from Another Computer

1. Find server IP:


ip a

2. Access servers:
- HTTP: http://<server-ip>
- FTP: ftp <server-ip>
- SMTP: telnet <server-ip> 25
- TELNET: telnet <server-ip>
## 7. Troubleshooting

- Check service status:


sudo systemctl status <service-name>

- Check logs:
- Apache: /var/log/apache2/error.log
- FTP: /var/log/vsftpd.log
- SMTP: /var/log/mail.log
- TELNET: /var/log/xinetd.log

- Allow firewall ports:


sudo ufw allow 80
sudo ufw allow 21
sudo ufw allow 25
sudo ufw allow 23

You might also like