Google Cloud Console Generate Ssh Key Mac
Google Cloud Console Generate Ssh Key Mac 3,5/5 3812 reviews
  1. Generate Ssh Key Aix
  2. Generate Ssh Key Osx

Get Plex + Sonarr + Radarr + SABnzbd automatically installed in either AWS or Google Cloud, with near-infinite (and affordable) storage.

Automated deployment using Terraform

Prerequisites

  • Install Terraform from terraform.io
  • A Usenet account - NewsgroupNinja recommended
  • A Usenet indexer - NZBGeek recommended
  • Jul 14, 2019 If you want to connect via ssh into Google Cloud,Then you have to generate Private and Public keys. Public key: You will transfer this key to a server, which you want to connect via SSH. Eg Google Cloud Vm Instances. Private key: Private keys which are known only to the owner. You should not share this key to anyone. You local Computer.
  • Google Cloud Platform lets you build, deploy, and scale applications, websites, and services on the same infrastructure as Google.
  • Connect to the server using SSH Obtain SSH credentials Obtain your SSH credentials from the Bitnami Launchpad. The Bitnami Launchpad for Google Cloud Platform automatically injects an auto-generated public SSH key for the bitnami user and allows the user to.
  • Nov 02, 2017 Part 2 of the tutorial for setting up Wordpress on Google Cloud Compute. This teaches you how to generate the SSH keys to connect remotely and how to setup your FTP client from your Mac.

Adding your SSH key to the ssh-agent. Before adding a new SSH key to the ssh-agent to manage your keys, you should have checked for existing SSH keys and generated a new SSH key. When adding your SSH key to the agent, use the default macOS ssh-add command, and not an application installed by macports, homebrew, or some other external source.

AWS

  • Create an IAM key/secret pair, save as plexverse/auth/aws_creds.csv

Google Cloud (BETA - SEE KNOWN ISSUES)

  • Create a Google Cloud Platform Account
  • Create a new project, taking note of the project ID
  • Get authentication JSON file:
    • Log into Google Developers Console, select your project
    • Select API Manager View, click 'Credentials' on left, then 'Create Credentials,' then finally 'Service Account Key'
    • Select 'Compute Engine default service account' in the 'Service Account' dropdown, select 'JSON' as key type

Usage

  1. git clone this repo.
  2. Enter plexverse/providers/[PROVIDER] depending on which cloud platform you'd like to deploy to.
  3. Change/populate variables in variables.tf as desired.
  4. Run terraform init then terraform plan to confirm everything is set properly.
  5. Run terraform apply to create the Plexverse stack, taking note of the <machine_ip> displayed at the end of creation.

Post-Installation

Mac

Generate Ssh Key Aix

Please perform these configurations in the order listed.

Plex

  1. You need to create an SSH tunnel to access Plex for the initial set up. To do this, run ssh -i ~/.ssh/id_rsa root@<machine_ip> -L 8888:localhost:32400. You'll then need to use it by going to localhost:8888/web and manually enable remote management for Plex (v. important!).
  2. Add a Movies library in Plex and point it to /plexmedia/Movies
  3. Add a TV Shows libarary in Plex and point it to /plexmedia/TV Shows

SABnzbd

  1. Go to http://<machine_ip>/sabnzbd and complete the intial set up (including adding your Usenet server credentials), taking note to create a username and password for security purposes.
  2. Go to SABnzbd config and take note of the 'API Key.' You'll need to enter this in both Sonarr and Radarr in the next steps.

Sonarr

  1. Go to http://<machine_ip>/sonarr then to 'Settings.'
  2. On the 'Media Management' tab, change 'Rename Episodes' to 'Yes.'
  3. On the 'Indexers' tab, add your preferred Usenet indexer settings and API key.
  4. On the 'Download Client' tab, add 'SABnzbd' with the username/password and API key you received from the 'SABnzbd' step of configuration above.
  5. On the 'General' tab, change 'Authentication' to 'Basic (Browser popup)' and enter a username and password. Click 'Save.'
  6. Go to the 'System' icon and restart Sonarr using the restart icon in the upper right corner of the frame.
  7. Add your first TV series to Sonar. Under 'Path,' click 'Add a different path' and browse to select /plexmedia/TV Shows. This will now be the default for future shows you add.
  8. Click the plus sign to add the show, then visit the page for the show you just added in Sonarr, and click the magnifying glass, either for the whole series or a specific show/season, to trigger searching, downloading, and processing.

Radarr

  1. Go to http://<machine_ip>/radarr then to 'Settings.'
  2. Everything else is the same as with Sonarr (above), except make sure to add the path for downloaded movies as /plexmedia/Movies!

Todo

  • Automate post-installation steps
  • Include domain name support with automatic SSL certificate creation from Let's Encrypt

Known Issues

  • Some kind of race condition exists in whereby apt-get update sometimes doesn't finish before apt-get install aptdcon is triggered, causing the installation to fail entirely.
  • Google Cloud support is very close but still experiencing errors during initial setup. However, once these errors occur, exiting out of the terraform shell with ctrl+c and re-running terraform apply seems to make this depoyment successful.
  • Any help with these would be greatly appreciated!

Services

  • Plex (Media) - if remote management enabled, access at http://<machine_ip>:32400/web

  • Sonarr (TV) - http://<machine_ip>/sonarr

  • Radarr (Movies) - http://<machine_ip>/radarr

  • SABnzbd (Downloader) - http://<machine_ip>/sabnzbd

Connect to a server by using SSH on Linux or Mac OS X

This article provides steps for connecting to a cloud server froma computer running Linux® or MacOS® X by using Secure Shell (SSH).It also discusses generating an SSH key and adding a public key tothe server.

Introduction

SSH is a protocol through which you can access your cloud server and runshell commands. You can use SSH keys to identify trusted computers withoutthe need for passwords and to interact with your servers.

SSH is encrypted with Secure Sockets Layer (SSL), which makes it difficultfor these communications to be intercepted and read.

Note: Many of the commands in this article must be run on your localcomputer. The default commands listed are for the Linux command line orMacOS X Terminal. To make SSH connections from Windows®, you can use a clientsimilar to the free program, PuTTY.To generate keys, you can use a related program, PuTTYGen.

Log in

Using the Internet Protocol (IP) address and password for your cloud server, log in byrunning the following ssh command with username@ipaddress as the argument:

The system prompts you to enter the password for the account to which you’reconnecting.

Remote host identification

If you rebuilt your cloud server, you might get the following message:

One of the security features of SSH is that when you log in to a cloudserver, the remote host has its own key that identifies it. When you tryto connect, your SSH client checks the server’s key against any keysthat it has saved from previous connections to that IP address. After yourebuild a cloud server, that remote host key changes, so your computerwarns you of possibly suspicious activity.

To ensure the security of your server, you canuse the web console in the Cloud Control Panel to verify your server’s new key.If you’re confident that you aren’t being spoofed, you can skip thatstep and delete the record of the old SSH host key as follows:

On your local computer, edit the SSH known_hosts file and remove anylines that start with your cloud server’s IP address.

Note: Use the editor of your choice, such as nano on Debian or theUbuntu operating systemor vi on RPM or CENTOS servers. For simplicity, this article just uses nano. If you prefer to use vi,substitute vi for nano in the edit commands.For more on using nano, seehttps://support.rackspace.com/how-to/modify-your-hosts-file/.

If you are not using Linux or MacOS X on your local computer, thelocation of the known_hosts file might differ. Refer to your OS forinformation about the file location. PuTTY on Windows gives you theoption to replace the saved host key.

Generate a new SSH key pair

You can secure SSH access to your cloud server against brute forcepassword attacks by using a public-private key pair. A public key is placed onthe server and a matching private key is placed on your local computer. If youconfigure SSH on your server to accept only connections using keys,then no one can log in by using just a password. Connecting clientsare required to use a private key that has a public key registered onthe server. For more on security, reviewLinux server security best practices.

Use the following steps to generate an SSH key pair:

  1. Run the following command using your email address as a label.Substitute your email address for [email protected] inthe command.

    A message indicates that your public-private RSA key pair isbeing generated.

    At the prompt, press Enter to use the default location or entera file in which to save the key and press Enter.

  2. If you want the additional security of a password for the key pair,enter a passphraseand press Enter. If you don’t want to use a passwordwith the key pair, press Enter to continue without setting one.

    Your key pair is generated, and the output looks similar to the following example:

  3. Optionally, add your new key to the local ssh-agent file to enableSSH to find your key without the need to specify its location everytime that you connect:

    You can use an SSH configuration shortcut instead of the ssh-agent fileby following the instructions in the Shortcut configuration sectionlater in this article.

    Crypto key generate rsa command not working. Why can't run crypto key generate rsa. The 3548 was end of sales in July 2002 (reference). They do not support ssh (only telnet for vty access) and thus do not have the capability to generate an RSA key.

Add the public key to your cloud account

To make it easy to add your key to new cloud servers that you create,upload the public key to your cloud account by following these steps:

  1. Log in to the Cloud Control Panel.
  2. In the top navigation bar, click Select a Product > Rackspace Cloud.
  3. Select Servers > SSH Keys.
  4. Click Add Public Key.
  5. Enter a key name, such as Work Laptop, to remind you which computer this key is for.
  6. Select the region for which you want to store the public key. Tostore your key in multiple regions, repeat these steps foreach region. The key must reside in the same region as the server.
  7. Paste the contents of the id_rsa.pub file that you created intothe Public Key field. You can get the file contents by eitheropening the file in a text editor or by running the followingcommand:

  8. Click Add Public Key.

If you want to add the key manually, instead of by using the Control Panel, reviewLinux server security best practicesand use the following command:

Create a new server by using a stored key

Google Cloud Console Generate Ssh Key Mac

When you create a new cloud server, you can add a stored key to the newserver.

  1. On the Create Server page, expand the Advanced Options section.

  2. From the SSH Key menu, select your key from the list.

  3. If you don’t see a stored key in the list, you can perform one of the following actions:

    • Switch the region for the new server to the region where you have stored the SSH key.
    • Repeat the steps in the preceding section, Add the public key to your cloud account,to add the key to the region in which you want to create the new server.

Add the key to an existing server

You can’t use the Cloud Control Panel to add a public key to anexisting server. Follow these steps to add the key manually:

  1. On your cloud server, create a directory named .ssh in the homefolder of the user that you connect to by using SSH.

  2. Create or edit the authorized_keys file and add your public key tothe list of authorized keys by using the following command:

    A key is all on one line, so ensure that the key isn’t broken byline breaks. You can have multiple keys in the authorized_keysfile, with one key per line.

  3. Set the correct permissions on the key by using the following commands:

  4. If you have any issues and need to fix permissions issues, run the following comand:

After you have added the public key to the authorized_keys, you can make an SSHconnection by using your key pair instead of the account password.

Shortcut configuration

Use the following instructions to set up a connection shortcut by creating a~/.ssh/config file on your local computer and adding your server and keydetails to it.

  1. Using a text editor, add the following text to the ~/.ssh/config file, changing thevalues to match your server information:

    Each of the following entries describes a feature of the server:

    • Host: A shortcut name that you use to tell SSH to use thisconnection.
    • HostName: The address of the server to which you connect.
    • User: The name of the user account to connect to on theserver.
    • IdentityFile: The location of the private key file (id_rsa).
  2. After you set up the config file, connect to the server by usingthe following command with your shortcut name:

Troubleshooting

If you have trouble making a new connection after you restart theserver, use the following steps to help you resolve the issue:

  • The best way to troubleshoot SSH or SFTP login issues is to attempt tologin through SSH while logged into the Emergency Console and to watch the log,which typically includes the reason for a failure. If no reason is given,it could be a firewall issue. For RPM servers, run the following command to watch the log:

    For Debian servers, run the following command to watch the log:

  • If you get a connection timeout error, check the IP address thatyou used to ensure that it’s correct. You might also check theserver’s iptables to ensure that it isn’t blocking the port used by SSH.
  • If you get a connection refused error, you might be trying to useSSH with the wrong port. If you changed your server to listen to aport other than 22, use the -p option with SSH to specifythe port.
  • If your login is rejected, then you might have an issuewith your key. Change the sshd configuration to allow passwordconnections by setting PasswordAuthentication to yes. Restartthe server and try again. If you connect after these changes, thenthe issue is with the key and you must verify that the key is in theright place on the server.
  • If all else fails, review your changes and restart the SSH daemon onthe server by running the following command:

    If you get a message that the SSH service is unknown, run thecommand with sshd as the service name instead.

Experience what Rackspace has to offer.

©2020 Rackspace US, Inc.

Generate Ssh Key Osx

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License