Project_Folder
|_ client
|_Client.java
|_KEY.txt
|_RSA.java
|_SymmetricCrypto.java
|_ server
|_Server.java
|_KNOWN_HOSTS.txt
|_RSA.java
|_SymmetricCrypto.java
Step 1:
First go to server folder.
Open terminal in that folder.
Compile Server.java file by running following command
javac Server.java
Run Server.java file with the following format.
java Server
Step 2:
Now go to client folder.
Open terminal in that folder.
Compile Client.java file by running following command
javac Client.java
Run Client.java file with the following format.
java Client username@ipaddress
Example:
java Client [email protected]
If connection establish successfully and user is verified then you are logged in to the server.
Now you can access the server from your terminal.
