Dreamhost, DreamCompute(OpenStack) ssh login


You have just created your first instance in Dreamhost’s new service DreamCompute using OpenStack and you would like to login with ssh, but you get ‘Permission Denied’.


The solution is described here, and it’s the fact that the user name that you need to use is not your Dreamhost account name, or the DreamCompute dashboard user anme but the the username called:

NOTE: It seems that is also described here, at the bottom.

Leaving a service/script running even after finishing the ssh session

You want to run a service/script on a server that you have logged in with ssh, but you want to leave it running even after you have terminated the ssh session.

Use the nohup command so do the following in your ssh session:

bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)


When trying to connect with ssh to a linux (debian- ubuntu) server you get the following error:


The reason is that the server is missing the en_US locale that your client is trying to use to connect to the server.
Login to the server and by using sudo (or su) run the following to install the missing en_US locale and make sure that you leave default to ‘None’ as described here:

Connect to a remote MySQL server with MySQLBrowser using SSH


You would like to connect to a remote MySQL server using the Mysql-query-browser GUI tool, and you only have localhost access to the remote server, but also have ssh access to the remote server.



You can use the following command to start a port forwarding to your localhost and then use that to connect to the remote database server:

You could then use the following to the Mysql-query-broser connection:


Using gitolite in a non standard ssh port

You have moved your gitolite server or you want to be able to access your gitolite server behind a firewall and port 22 for ssh is no longer available.

Edit your .git/config file and replace the line with :

url = git_user_name@http://server_ip:repo_name.git

to the following:

url = ssh://git_user_name@external_ip:non_standard_ssh_port/repo_name.git

problem using capistrano on deployment server after server ip address change

After changing the IP address of your staging server the cap deploy does not work any more and gives you the following error:

** [ :: err] Host key verification failed.
** [ :: err] fatal: The remote end hung up unexpectedly

You would need to login to your staging server (as your deployment user) and do an initial checkout for one time for the ssh keys to work.
So you could do something like the following:

$ ssh user_name@staging_server
$sh -c 'git clone -q git_user@ /some/tmp/dir/temp_repo_name

Make sure that you reply ‘y’ to the question about the authenticity of the host as in:
The authenticity of host ' (' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xxb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '' (RSA) to the list of known hosts.

Next delete the newly created git project from your tmp directory, and then you should be able to use cap deploy as normal again from your development pc

capistrano deployment fails after dreamhost server move

You have set up your capistrano recipe for deployment to dreamhost using password less logins, but after dreamhost moves your git repository server to a different server, the deployment breaks, with ‘permission denied’ when trying to get the git repository.

As the server was moved you would need to copy your ssh public key from the deployment server to the new server again for the password-less logins to work again.
Follow the details here how to copy your public key across, login in once with your password, and after that your capistrano recipe should be working again as normal.

Password – less logins and aliases with ssh

You want to be able to login to different servers with ssh, but don’t want to be using your password every time.

We assume that you already have installed ssh and have created ssh public keys in your local machine.

  1. Run the following in your local machine:
  2. If you want to add aliases in your bash profile so you don’t have to type the whole address of the remote host, edit your .bashrc and add:
  3. Restart your X server, or simply start a new terminal session
  4. You should be able to login with ssh without using your password by typing in your command prompt in your local machine: