[SOLVED] COMP2560 Assignment5- minissh with socket

35.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

Use socket to write a client/server application to simulate the basic functionality of secure shell. Once the client is connected to the server, it can keep sending shell commands to the server. For each command, the server will return the result of executing the shell command.

  • The server and client programs can be run on different machines.
  • The server program is started first, waiting for client to connect.
  • When the server program is terminated with CTRL-C, the client program is also terminated.
  • When the client program is terminated with CTRL-C, the server program will wait for the next connection from client.

Simplification:

  • The shell commands from the client are simple ones without arguments.
  • The commands from the client can be executed on the server side by different shell processes.

 

 

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.