A File Transfer Protocol(FTP) Multi Client implementation in go environment with client authentication.
- pwd [print working directory]
- ls [list directory]
- cd [change directory]
- upload [upload file from current "filestore/clientDir"]
- download [download file from $(pwd) of the ftp client terminal]
- delete [delete specific file from the current pwd]
- close/exit [close the connection]
- client : Contains implementation of the client.
- server : server side code in the FTP
cd server
go run server.go utils.go
#Multiple clients can be attached
cd ../client
go run client.go utils.go
Run the server
in cloud VM and put the ip of the instance in client/client.go
's HOST
parameter.
!make sure to allow traffic to the port specified on your VPC firewall.
easy-peasy right!
~Bisakh.