Skip to main content

Questions tagged [ssh-config]

1vote
1answer
68views

Download dotfiles when SSH-ing with a bash login shell

I'm working with a lot of remote Ubuntu hosts that are changing a lot. To have a streamlined workflow on all hosts I'm downloading my personal dotfiles with bash aliases, small exes and configurations ...
glades's user avatar
1vote
0answers
64views

Git ls-remote to github fails with classic "SHA-1 not supported" on tunneled ssh session but `ssh -T [email protected]` doesn't

Cross-posting from here as suggested by the community. A bit of context: At my company we do tunneling to ssh into EC2 boxes. This tunneling command is as usual, uses ForwardAgent and the proxycommand ...
Stoic Alchemist's user avatar
1vote
1answer
351views

How to match IPv6 addresses as a host pattern in ssh_config

My VPS listens to SSH on port 222. On my clients I created a ssh_config such that the non-default port needs not to be explicitly provided on the command line every time. (Some daemons which ...
user2690527's user avatar
2votes
0answers
187views

ssh-agent with multiple keys

I have a script which retrieves private keys from a repository database and adds them to the ssh-agent with ssh-add - <<<"----My Private Key----" The keys don't get stored on the ...
Kai78's user avatar
1vote
1answer
40views

SSH Config: How to Stop Repeating a Setting/Have it in the Wildcard Host?

I have a repeating setting remoteCommand, that I'd like to add in the wild card host if possible. Here is a truncated snippet: host container-server host container-1 remoteCommand docker exec -it ...
Nickotine's user avatar
0votes
1answer
373views

ssh config: I have many hosts who I want to use settings from 2 different wildcard hosts respective, please review my attempt

I have 2 sets of hosts who I want to use settings from 2 seperate wildcard hosts. I also have a huge number of hosts so need help on which style is best for this scenario. The hosts are mostly in the ...
Nickotine's user avatar
-1votes
1answer
335views

ssh config: can I have 2 host wildcards?

Simplified Example: host one user cat host two hostname 2 host three hostname 3 host * hostname 1 host * user apple identityFile ~/.ssh/id_rsa host y hostname 7 host t ...
Nickotine's user avatar
0votes
1answer
102views

Can i used these aliases in some sort of config file?

I have many of these kinds of aliases, the part before = is the host in ssh config alias sshConfigHost='ssh -t hostname docker exec -it containerName bash' Could I add these to some sort of config ...
Nickotine's user avatar
1vote
1answer
427views

ssh config: can I replace proxy command?

Here is my standard work ssh config which everyone uses: host go User user ProxyJump otherHostname StrictHostKeyChecking=no UserKnownHostsFile=/dev/null IdentityFile ./ssh/key ProxyCommand ...
Nickotine's user avatar
0votes
1answer
384views

Create ssh config to VNC server with tunnel via intermediate machine

I recently found out about ssh config file where one can setup frequently used ssh connections. However, I am having troubles transforming one command which connects my computer to VNCServer running ...
Arual's user avatar
1vote
1answer
473views

Add multiple interfaces to one IPv6 Hostname in SSH config [duplicate]

Right now I have the following ~/.ssh/config to reach an embedded device via its link-local IPv6: Host someDevice # Hostname fe80::dcad:beff:feef:cafe%%eth0 Hostname fe80::dcad:beff:feef:cafe%%...
Mo_'s user avatar
  • 115
2votes
0answers
310views

Conditionally skip ssh-config options when ssh is too old for them?

How can I use SetEnv in ~/.ssh/config (and the same config on various systems), but not throw an error when ssh is too old to support it? I've tried adding a Match exec statement to exclude that ...
Jacktose's user avatar
1vote
0answers
855views

What is the difference between a Match all and a Host * block in ssh_config

As I was reviewing my current OpenSSH client configuration file and intensively reading the ssh_config(5) man page, I found that, from my understanding, both Match all and Host * will achieve the same ...
Étienne's user avatar
0votes
1answer
492views

Placeholder in ssh config in HostName

I am trying to simplify the following part: Host sandbox* Port 22 User myUser ProxyCommand=nc -X 5 -x gateway.test.io:1080 %h %p Host sandbox9 HostName 1.0.9.10 Host sandbox10 ...
Mr.Tr33's user avatar
6votes
1answer
4kviews

In ssh config, what does `Match canonical all` mean?

I wanted to use CanonicalizeHostname in my ssh config which would make it possible to add and remove hosts without having to edit the file. Host bastion ProxyJump none Match canonical ...
paradroid's user avatar

153050per page
close