732.369.6243

732.369.6243

ABOUT US - Blog Detail

We always provided number #1 world class web design and development to deliver you successful business.

Connecting SSH with no Passwords from Local to Live Domain

Posted in From Our Blog | Share: Bookmark and Share

Connecting SSH with no Passwords from Local to Live Domain
default-cpanel-structure

Coolestguidesontheplanet.com | Neil Gee

This guide is about setting up a SSH connection without passwords from a local development environment to a live domain site, the requirements are that you have SSH access to the live domain.

Setting up SSH folder on a Remote Domain

SSH into the domain as the domain owner.

By default some hosting providers do not set up a .ssh folder in the domain home.

Make a secure SSH directory if it doesn’t exist.

mkdir .ssh

Set the permissions so only the domain owner can read/write and execute

chmod go-rwx .ssh/

Create an authorised keys file inside

touch .ssh/authorized_keys

Now grab you local public secure key file and add it to the remote authorized_keys file.

nano .ssh/authorized_keys

Paste and save.

Now make the authorized_keys file secure

chmod a-w .ssh/authorized_keys

Now from Local you can access

Either on the standard SSH port

ssh username@mydomain.com

Or on a non-standard port

ssh username@mydomain.com -p2000

Once you have this set, it makes things like version control a lot easier.

Connecting SSH with no Passwords from Local to Live Domain
Neil Gee

comments powered by Disqus

About

CALL FOR A FREE QUOTE TODAY or Request for Proposal

Recent Post

Install WordPress Dev Sites on Vagrant with Variable VVV

March 28, 2015 - Coolestguidesontheplanet.com | Neil Gee Vagrant and WordPress Local Development – Spinning up sites with Variable VVV...more

Announcing the DZone Guide to Developer Programs

March 27, 2015 - Announcing the DZone Guide to Developer Programs! Developer programs are focused communities of practice, gathering de...more

Enterprise Agile or Agile Enterprise?

March 27, 2015 - Recommended Links Perspectives: How do you estimate on an Agile project? Online project management: Try Mingle Getting...more

From Our Blog

Install WordPress Dev Sites on Vagr...

March 28, 2015 - Coolestguidesontheplanet.com | Neil Gee Vagrant and WordPress Local Development – Spinning up sites with Variable VVV Vagrant – Getting Started on OSX Vagrant and WordPress – Local Dev Set Up Vagrant and WordPress – Adding Multiple Sites wit...

  Read more

Announcing the DZone Guide to Devel...

March 27, 2015 - Announcing the DZone Guide to Developer Programs! Developer programs are focused communities of practice, gathering developers around specific technologies and offering high-quality tools, shared expertise, and all kinds of community support. That'...

  Read more

Enterprise Agile or Agile Enterpris...

March 27, 2015 - Recommended Links Perspectives: How do you estimate on an Agile project? Online project management: Try Mingle Getting Better In 60 Seconds - Cycle Time Analytics 6 Reasons to Ditch Your Old Chat Client SVN to Git: How to make the switch Like this ...

  Read more