-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Jennifer Zhang edited this page Aug 6, 2020
·
4 revisions
- To register for an account, go to your terminal, and run the following command:
ssh [email protected]
- It well then prompt you for a password. Type in the following:
guest
- Afterwards, run the command:
./guest_add_user.sh USERNAME PASSWORD
, whereUSERNAME
is the username you wish to register your account with, andPASSWORD
is the account's password. - After that, type
exit
. - To test if your account has been successfully set up, run the following command:
ssh [email protected]
, whereUSERNAME
is your new username. Enter your password when prompted. If you seeUSERNAME@ubuntu-cocode:~$
, then that means you have successfully made an account.- NOTE: Because of limited space, there is a maximum number of users. If you're running into issues registering for an account, feel free to open an issue.
To properly use our application, you must have an SSH key set up for your account.
- First, generate a key. To do so, open up your terminal, and run the following command:
ssh-keygen
. Press enter three times. - After you have generated your key, run the following command:
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
, whereUSERNAME
is your username. - Now the SSH key should be set up. Try running
ssh [email protected]
. If it doesn't prompt you for a password, then the SSH key was successfully set.
To push a file, take this code, and compile and run it. The usage is ./a.out <username> <password> <file to upload>
For example:
$ ls
git_client_linux_push.cpp hello_world.txt
$ g++ git_client_linux_push.cpp -o client_push.exe
$ ./client_push.exe username password hello_world.txt
connecting to server.....
Successfully logged in
bytes received: 10
FILE found
File successfully sent to server.