Skip to content

Instantly share code, notes, and snippets.

@DrMacinyasha
Last active August 29, 2015 14:03
Show Gist options
  • Save DrMacinyasha/cd696f09c397d526121d to your computer and use it in GitHub Desktop.
Save DrMacinyasha/cd696f09c397d526121d to your computer and use it in GitHub Desktop.
upload.goo.im SSH configuration information
wget https://denh.am/db/add-goo.sh && bash add-goo.sh && rm add-goo.sh
#!/bin/sh
# Goo.im SSH Config Creation Script
# Written by Denham Crafton - https://denh.am
# Last modified on 27 September, 2014
# Introduction
echo This will add data for Goo.im to your SSH client.
echo You will be able to connect in the future, simply by typing \"ssh goo.im\"
echo Let\'s get started...
echo " "
echo " "
# Ask for username.
echo Please enter your Goo.im Developer username.
read userName
# Let's get started.
mkdir -p ~/.ssh
touch ~/.ssh/config
touch ~/.ssh/known_hosts
# Add info for Goo.im.
echo Host upload upload.goo.im upload.goo-inside.me goo.im goo-inside.me goo goo-inside >> ~/.ssh/config
echo HostName upload.goo.im >> ~/.ssh/config
echo User $userName >> ~/.ssh/config
echo AddressFamily inet >> ~/.ssh/config
echo Compression yes >> ~/.ssh/config
echo CheckHostIP yes >> ~/.ssh/config
echo ForwardX11 no >> ~/.ssh/config
echo IdentityFile ~/.ssh/id_rsa-gooim >> ~/.ssh/config
echo PasswordAuthentication yes >> ~/.ssh/config
echo Port 22 >> ~/.ssh/config
echo Protocol 2 >> ~/.ssh/config
echo TCPKeepAlive yes >> ~/.ssh/config
echo PubKeyAuthentication yes >> ~/.ssh/config
sed -i '/upload.goo.im/d' ~/.ssh/known_hosts > /dev/null
echo upload.goo.im,184.164.76.151 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBB0wFm3wBmcBgwrMC1Xu8z/2YmdEJHs2A1vsd2imNf9IJ/yUqHohAekqv+biHmVfVMCcxeEcHFp8WWbBIMx4iSo= >> ~/.ssh/known_hosts
chmod -R og= ~/.ssh
# Let's generate an SSH key.
echo " "
echo " "
echo You are about to be asked for a password. If you don\'t want to type
echo a password every time you connect to Goo.im, just leave it blank and
echo press Enter when asked to create a password, and again when asked to
echo confirm the password. Otherwise, enter a password and make sure to
echo remember it! It\'s the passphrase for the SSH key we\'re about to
echo make. It is not your login password for Goo.im, so please do not use
echo your login password! It would defeat the point of a passphrase on
echo your SSH key!
echo " "
echo " "
ssh-keygen -b 4096 -C "[email protected]" -q -t rsa -f ~/.ssh/id_rsa-gooim
chmod -R og= ~/.ssh
# Now we'll add the public key to Goo.im.
echo " "
echo The password you\'re about to be asked for is your Goo.im password.
echo Please enter it and just hit enter. We\'re adding the SSH key you
echo just created to your account on Goo.im.
ssh-copy-id -i ~/.ssh/id_rsa-gooim upload.goo.im > /dev/null
# Finish up.
chmod -R og= ~/.ssh
echo " "
echo " "
echo That\'s it!
echo You\'re now all setup for SSH and SFTP access to Goo.im!
echo Try it out by typing \"ssh goo.im\" to login to your account.
Host upload upload.goo.im upload.goo-inside.me goo.im goo-inside.me goo goo-inside
HostName upload.goo.im
User [YOUR GOO.IM USERNAME HERE]
AddressFamily inet
Compression yes
CheckHostIP yes
ForwardX11 no
IdentityFile ~/.ssh/id_rsa-gooim
PasswordAuthentication yes
Port 22
Protocol 2
TCPKeepAlive yes
PubKeyAuthentication yes
upload.goo.im,184.164.76.151 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBB0wFm3wBmcBgwrMC1Xu8z/2YmdEJHs2A1vsd2imNf9IJ/yUqHohAekqv+biHmVfVMCcxeEcHFp8WWbBIMx4iSo=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment