Skip to main content

Questions tagged [ssh-config]

Filter by
Sorted by
Tagged with
2 votes
1 answer
142 views

I have a computer server and a laptop guest, both running Ubuntu. I set SSH multiplexing and control master in the laptop's .ssh/config like the following: Host servername User username Port 22 ...
hannah's user avatar
  • 21
1 vote
1 answer
103 views

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
  • 126
1 vote
0 answers
122 views

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
2 votes
1 answer
664 views

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
2 votes
0 answers
248 views

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
  • 21
1 vote
1 answer
61 views

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
  • 554
0 votes
1 answer
687 views

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
  • 554
-1 votes
1 answer
445 views

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
  • 554
0 votes
1 answer
132 views

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
  • 554
1 vote
1 answer
555 views

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
  • 554
0 votes
1 answer
485 views

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
  • 3
1 vote
1 answer
555 views

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
  • 259
2 votes
0 answers
371 views

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
  • 532
2 votes
0 answers
1k views

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
0 votes
1 answer
579 views

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
  • 101
7 votes
1 answer
5k views

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
  • 1,265
2 votes
0 answers
929 views

According to ssh_config(5) an Include statement can be placed inside a Match or Host block to create conditionsl inclusion Include: Include the specified configuration file(s). Multiple pathnames may ...
kvantour's user avatar
  • 141
3 votes
2 answers
407 views

I'm using the SSH Match exec functionality to trigger a script when making a connection, such as: Match host foo* exec "/some/script.sh" Host foo User ubuntu [... rest of ssh config file ...
Rino Bino's user avatar
  • 131
2 votes
1 answer
1k views

I have a machine that I am using as an SSH jumphost which has multiple ethernet ports each of which has its own IP address (192.168.1.22 and 192.168.1.178 in case it matters). I use SSH for a lot of ...
RedHack's user avatar
  • 141
2 votes
1 answer
1k views

If we want to connect to a host through some server, we can do so using the ProxyJump command in ssh config or directly in terminal via: ssh -J user@server user@target-host The manual states that ...
daniel451's user avatar
  • 1,117
0 votes
1 answer
392 views

My current .ssh/config file has below config. Host * FingerprintHash sha256 StrictHostKeyChecking yes PasswordAuthentication no GSSApiAuthentication no KbdInteractiveAuthentication ...
Hardguy's user avatar
  • 59
0 votes
1 answer
296 views

I recently migrated one of my servers to a RHEL8 equivalent, which means (i) leaving tcp_wrappers behind (since openssh no longer compiles against libwrap), (ii) no longer have the ease and ...
Johnny Canuck's user avatar
2 votes
1 answer
2k views

I set up a reverse SSH tunnel to access a node, node1, behind a NAT. I have set up an EC2 instance, myEC2, to act as the intermediary. From my laptop, when I want to access node1, I have to SSH into ...
Xavier Merino's user avatar
1 vote
2 answers
454 views

I’m trying to specify configuration for commands of the form ssh foo or ssh bar; where foo and bar are actually foo.xyz.org and bar.xyz.org but xyz.org is supplied by my VPN search domain. I’ve looked ...
xrisk's user avatar
  • 701
0 votes
0 answers
377 views

I wrote the below loop that creates ssh connections to remotehost1 $ cat sshloop.sh #!/bin/sh i=0 while [ $i -ne 500 ] do i=$(($i+1)) echo "SSH COUNT IS: $i" ...
Ashar's user avatar
  • 527
4 votes
2 answers
25k views

I want to run a command automatically after I connect to another machine via ssh, without the ssh session being closed automatically. After searching the internet I found some solutions but none of ...
Askerman's user avatar
  • 143
1 vote
1 answer
3k views

I know that ssh config file is parsed from top down and that it uses the options listed for the first valid match, ignoring ones from later valid matches if it already saw that option. I've tried a ...
Chris's user avatar
  • 327
0 votes
0 answers
112 views

Say I have the following config in ~./ssh/config Host server*-port HostName 111.111.111.111 User share IdentityFile ~/.ssh/id_rsa Port 9%h0 If I do ssh server01-port, I want the port be 9010. ...
Ynjxsjmh's user avatar
  • 101
4 votes
1 answer
3k views

I'm seeing in the ssh_config man page and on the openssh website that I should be able to use a %n token when locating the identity file for a given host entry. percent_expand tokens used by OpenSSH's ...
Scott's user avatar
  • 151
14 votes
4 answers
6k views

I have defined a ssh_config file with all the hosts to which I connect on a regular basis. I like to start/connect to a tmux session upon connection to the host, so I've added the line RemoteCommand ...
qmeeus's user avatar
  • 263
0 votes
1 answer
2k views

I need to allow ssh access to all users, but if the UID is between 6000 and 6500 I need to check if the IP where the ssh is coming from is in the file /etc/remote-hosts. /etc/remote-hosts 1.2.3.4 5.6....
Rafael Moreira's user avatar
1 vote
1 answer
1k views

I connect to my device through ssh from my machine. If I am not active for some relatively short time, it closes the session after sometime. Connection to 10.X.Y.Z closed by remote host. Connection to ...
Darshan L's user avatar
  • 279
1 vote
1 answer
931 views

The following command tmux new -A -s $(date +%Y%m%d%H%M%S) works and starts tmux with a session, named after current datetime (as expected). But if I put the same in ssh config RemoteCommand tmux new ...
Dims's user avatar
  • 3,485
3 votes
1 answer
1k views

How can I have rules for a whole domain and also create aliases with rules for each of the subdomains without duplicating all the ruleset? In other words, why is it that in the following example ...
retrography's user avatar
2 votes
1 answer
765 views

I would like to use my ssh config to use a google cloud cli (gcloud) to connect to google compute instances. (This is a follow-on to another question I asked, that had a working solution, but didn't ...
shortcipher3's user avatar
2 votes
2 answers
2k views

I would like to use my ssh config to use a google cloud compute instance as a jumpbox to connect to another box. However, I am having problems getting a config that will allow me to even connect to ...
shortcipher3's user avatar
1 vote
0 answers
1k views

I have a Linux server which I have configured to login with public private key for my account - and it works well. It's a long time since I set it up, so I can't remember what steps I took - but it's ...
headbanger's user avatar
0 votes
3 answers
7k views

I'm installing and configuring the ssh in CentOs 8 with a virtual box machine. I installed both libraries with following command: sudo yum install openssh-server openssh-clients Then I started the ...
Henrique Branco's user avatar
2 votes
1 answer
1k views

Yesterday, I was busy setting up a remote server and securing it. I am a noob at code, programming and webhosting, but I am trying to host my own website. So yesterday I changed some settings in the ...
Stoma Slobberaar's user avatar
4 votes
2 answers
2k views

Testing out the SSH Match Exec feature. I have this minimal ~/.ssh/config: Match Exec echo ServerAliveInterval 60 and I am running ssh localhost I get Unable to execute 'echo': No such file or ...
kabanus's user avatar
  • 331
0 votes
1 answer
782 views

I'm trying to set up an sshfs mount in fstab for persistent mounting of a network directory that has to be accessed via an ssh tunnel. my .ssh/config looks like this: Host A Hostname outer....
Richard J. Acton's user avatar
2 votes
1 answer
478 views

Background I use a 4096-bit RSA key-pair for authorizing access to my server. By ssh_config files I am referring to ~/.ssh/config and /etc/ssh/ssh_config. Here's what my ~/.ssh/config looks like: ...
its_me's user avatar
  • 14.6k
0 votes
1 answer
218 views

the problem is from his machine to this server, to other pc is all ok .the server correctly receive ssh connection from other pc whitout asking pass! OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 ...
ankx7's user avatar
  • 3
3 votes
1 answer
15k views

How can I run/tweak this command and while using ForceCommand to give this user their shell? Client Command (cat ./sudoPassword ./someCommandInput) | ssh user@ip "sudo -Sp '' someCommand" Server ...
notsoslimshady's user avatar
0 votes
1 answer
510 views

I am building a script that generates an ssh config file out of a Supperputty XML Session config file. I don't know which tool could handle it better. I try to achieve it with awk, but I don't receive ...
RandomGuy's user avatar
5 votes
2 answers
20k views

I have a configuration as below in my ~/.ssh/config file: Host xxx HostName 127.0.0.1 Port 2222 User gigi ServerAliveInterval 30 IdentityFile ~/blablabla # CertificateFile ~/...
Adrian's user avatar
  • 773
1 vote
1 answer
353 views

I'm using Ubuntu 14.04.5 LTS. The ssh bash completion on any Host of the file ~/.ssh/config does not work : $ ssh b2sed: -e expression #1, char 97: invalid reference \2 on `s' command's RHS The ...
SebMa's user avatar
  • 2,473
3 votes
1 answer
12k views

i cannot run a command before connect with ssh to remote server using ~/.ssh/config file. I have tried with options "ProxyCommand" and "LocalCommand" but it doesn't work. ProxyCommand: seems it run ...
Killouis's user avatar
6 votes
2 answers
4k views

Im trying to make my .ssh/config support different ssh keys for the same host so that I can commit to bitbucket as either my personal or work user, and other ssh stuff still uses my work user. My ...
undefined's user avatar
  • 161
0 votes
1 answer
627 views

I have a host2 remotely forwarding its ssh connection to port 2222 on host1. I am using the following command on host0 to connect to host2 via host1. ssh -tt host1 ssh -p 2222 localhost Is there an ...
Vimos's user avatar
  • 103