{"id":16974704,"url":"https://github.com/nulldev/ssh-starter","last_synced_at":"2025-03-21T20:42:39.979Z","repository":{"id":103787783,"uuid":"98807883","full_name":"NullDev/SSH-Starter","owner":"NullDev","description":":rocket: This is a simple SSH Starter script","archived":false,"fork":false,"pushed_at":"2021-01-18T10:11:53.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T21:27:41.244Z","etag":null,"topics":["expec","expectscript","nulldev","ssh","tcl"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-30T15:48:12.000Z","updated_at":"2025-03-19T01:04:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"78f28078-9a43-474b-a6fd-59b7600b4912","html_url":"https://github.com/NullDev/SSH-Starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullDev%2FSSH-Starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullDev%2FSSH-Starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullDev%2FSSH-Starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullDev%2FSSH-Starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullDev","download_url":"https://codeload.github.com/NullDev/SSH-Starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244868035,"owners_count":20523581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expec","expectscript","nulldev","ssh","tcl"],"created_at":"2024-10-14T01:07:40.571Z","updated_at":"2025-03-21T20:42:39.959Z","avatar_url":"https://github.com/NullDev.png","language":"Shell","readme":"# SSH-Starter-Interface\n\n[![Build Status](https://travis-ci.org/NullDev/SSH-Starter.svg?branch=master)](https://travis-ci.org/NullDev/SSH-Starter)\n\nThis is a newer version of my SSH Starter script.\n\nA small Expect script which will start SSH sessions with automatically entered password.\u003cbr\u003e\nYou can specify \u003cb\u003ehostname\u003c/b\u003e, \u003cb\u003epassword\u003c/b\u003e, \u003cb\u003eport\u003c/b\u003e and \u003cb\u003eusername\u003c/b\u003e inside the script for **4** different servers. \n\n\u003csup\u003e\"ssh.sh\" - When 97% of your keyboard is broken...\u003c/sup\u003e\n\n\u003e Tested on Ubuntu 16.04 and 14.04\n\nThis script also features CLI arguments so you can connect to your server instantly without getting prompted to choose a server.\n\nUsage: \u003cbr\u003e\n$ `./ssh.sh 1`\u003cbr\u003e\n$ `./ssh.sh 2`\u003cbr\u003e\n$ `./ssh.sh 3`\u003cbr\u003e\n$ `./ssh.sh 4`\n\n**Extra feature**: You can pass a command as argument, which will be executed after login!\n\nExample Usage: \u003cbr\u003e\n$ `./ssh.sh 1 echo hello` \u003cbr\u003e\u003cbr\u003e\nThis will execute `echo hello` once the login was sucessful. \n\n### Small code info:\n`expect \"assword:\"` on \u003ca href=\"https://github.com/NullDev/SSH-Starter/blob/master/ssh.sh#L67\"\u003eLine 67\u003c/a\u003e is not a typo. \nIt matches \"Password\" as well as \"password\".\n\n## HOW TO INSTALL\n\n1. Install expect script \u003cbr\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;$ `sudo apt-get update` \u003cbr\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;$ `sudo apt-get install expect` \u003cbr\u003e\n\n2. Clone and navigate to this repository \u003cbr\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;$ `git clone https://github.com/NullDev/SSH-Starter.git \u0026\u0026 cd SSH-Starter` \u003cbr\u003e\n\n3. Move the script wherever you want \u003cbr\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;$ `mv ssh.sh ..`\u003cbr\u003e\n\n4. Edit the script as you need it \u003cbr\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;$ `cd .. \u0026\u0026 nano ssh.sh` \u003cbr\u003e\n\n5. Make the script executable \u003cbr\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;$ `chmod +x ssh.sh` \u003cbr\u003e\n\n6. Thats it! You can either start in from the terminal with \u003cbr\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;$ `./ssh.sh` \u003cbr\u003e\nOr by doubleclicking it!\n\n## Optional:\n\nIf you do not want to store your password in the script directly, you could create a passwor file. Lets say you create a file called \"p\" in your home directory and store the password there. Then you can use \n\n`set SERVER_1_PKEY [exec cat ~/p]`\n\ninstead of \n\n`set SERVER_1_PKEY \"password1\"`\n\non \u003ca href=\"https://github.com/NullDev/SSH-Starter/blob/master/ssh.sh#L9-L12\"\u003eLine 9 to 12\u003c/a\u003e.\n\nHowever, this does not provide additional security (It isn't even security through obscurity). This is just for storing the password somewhere else instead of directly inside the script.\n\n\u003cp align=\"center\"\u003e\n\u003cbr\u003e\n\u003cstrike\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/strike\u003e Screenshot \u003cstrike\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/strike\u003e\u003cbr\u003e\u003cbr\u003e\n\u003c/p\u003e\n\u003ccenter\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/NullDev/SSH-Starter/master/.src/scr1.png\" /\u003e\n\u003c/center\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulldev%2Fssh-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnulldev%2Fssh-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulldev%2Fssh-starter/lists"}