Is there a default password to connect to vagrant when using `homestead ssh` for the first time?

After trying a lot of passwords and becoming totally confused why my public key password is not working I found out that I have to use vagrant as password. Maybe this info helps someone else too – that’s because I’ve written it down here. Edit: According to the Vagrant documentation, there is usually a default … Read more

How to use ssh agent forwarding with “vagrant ssh”?

I’m using vagrant 2 on OS X Mountain Lion. Vagrant.configure(“2”) do |config| config.ssh.private_key_path = “~/.ssh/id_rsa” config.ssh.forward_agent = true end config.ssh.private_key_path is your local private key Your private key must be available to the local ssh-agent. You can check with ssh-add -L, if it’s not listed add it with ssh-add ~/.ssh/id_rsa Don’t forget to add you … Read more

How to fix request failed on channel 0 [closed]

PTY allocation request failed on channel 0 There is a limit of 256 pseudo terminals on a system. Maybe you have an application that is leaking pseudo terminals. Use lsof /dev/pts/* to see what processes have open pseudo-terminals shell request failed on channel 0 I was getting this error (without PTY allocation error). It turns … Read more

How to automatically start tmux on SSH session?

Server-side configuration: To automatically start tmux on your remote server when ordinarily logging in via SSH (and only SSH), edit the ~/.bashrc of your user or root (or both) on the remote server accordingly: if [[ $- =~ i ]] && [[ -z “$TMUX” ]] && [[ -n “$SSH_TTY” ]]; then tmux attach-session -t ssh_tmux … Read more

Connect over SSH using a .pem file

Use the -i option: ssh -i mykey.pem user@mydomain.example As noted in this answer, this file needs to have correct permissions set. The ssh man page says: SSH will simply ignore a private key file if it is accessible by others. You can change the permissions with this command: chmod go= mykey.pem That is, set permissions … Read more