/sos

sos

Primary LanguageGo

Secure Openpubkey Shell (SOS)

Steps to setup SOS on your server:

  1. Clone the repository:
git clone https://github.com/devlup-labs/sos.git
  1. Add your Oauth credentials in cli/cli.go and verifier/cli.go in place of the dummy credentials.

  2. Build your verifier.

go build -o verifier ./verifier/
  1. To configure the server with your email id. (Note: you will need to enter the password approximately 4 times.)
go run cli/cli.go configure <email> <user>@<server-ip>
  1. (Optional) in case you want to configure a server with private key.
go run cli/cli.go configure <email> <user>@<server-ip> -i <pvt_key>
  1. Login to your gmail to generate your open pubkey.
go run cli/cli.go login
  1. (Optional in some cases) Run to add the ssh key.
ssh-add

Now you should be able to ssh into your server passwordless.