Skip to content

Instantly share code, notes, and snippets.

@ccaglayan
Created June 27, 2018 08:25
Show Gist options
  • Select an option

  • Save ccaglayan/15949badeda3aa4b7f37c0e8adb074dc to your computer and use it in GitHub Desktop.

Select an option

Save ccaglayan/15949badeda3aa4b7f37c0e8adb074dc to your computer and use it in GitHub Desktop.
Terminal üstünden otomatik olarak login olmak için gerekli bash script

Öncelikle ubuntu için

  • sudo apt install sshpass
  • sudo nano /usr/local/bin/autologin

içine:

sshpass -p "YOUR_PASSWORD" ssh -o StrictHostKeyChecking=no YOUR_USERNAME@SOME_SITE.COM

kaydettikten sonra

  • sudo chmod 777 /usr/local/bin/autologin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment