0
votes
2answers
53 views

SSH to server port forwarding through router

Hi so we have multiple machines on our network running ssh on port 22, because of this we set up port forwarding in the router as 22->22 for one of the machines and 222->22 on the other machine. The ...
0
votes
5answers
2k views

Can't SSH into a Vagrant Virtual Machine

Local Vagrant machine installed at ip address 10.0.0.23 and hostname lamp-vm. Using vagrant ssh I can connect just fine and do everything I need. This creates an ERROR - ssh vagrant@lamp-vm -v -v ...
1
vote
1answer
60 views

Server specific usernames for each SSH connection in Chef with Knife

To set a default user for each ssh connection, I would normally adjust my .ssh/config file to Host *.server1.com User joe Host *.server2.com User mike I am now using Chef. The knife tool ...
2
votes
3answers
624 views

Regular Expression matching in ssh config

I have a bunch of servers with the names srv1.domain.com, srv2.domain.com, ..., srv50.domain.com I want to be able to connect to these servers by ssh srv1 I don't want to put 50 configuration ...
3
votes
3answers
229 views

Is there a way to forward my .ssh/config file to an ssh connection?

There is a way to forward my private keys to the server im connected with the ssh -A option. Is there is a way to forward the .ssh/config file as well? Its where I keep host aliases and default ...
13
votes
1answer
7k views

ssh hostname returns “Bad owner or permissions on ~/.ssh/config”

When I try to ssh to another box, I get this strange error $ ssh hostname Bad owner or permissions on ~/.ssh/config But I made sure that I own and have rw permissions on the file: ls -la ~/.ssh/ ...