Questions tagged [ssh-config]

63 questions
2
votes
1 answer

ssh config file and username for cyberark

I'm trying to setup host in .ssh/config file with specified username. The problem is - this is ssh connection to cyberark host. so - with this command I can connect to the target host: ssh user1@user2@ip1@ip2 or with this command - works as…
robson
  • 1,623
  • 8
  • 28
  • 43
2
votes
1 answer

Is `host.name.edu:XXXX` an invalid format for an `.ssh/config` file?

I have weird case where I'm being told my IT to use the port inside the ssh URL to connect to a git server. My original ssh config is the following: Host my-host-alias HostName redacted.redacted.edu Port 2222 User git IdentityFile…
medley56
  • 1,181
  • 1
  • 14
  • 29
2
votes
0 answers

Heroku edit ssh_config under etc/ssh/ssh_config

I need to add "dynamically" ssh keys in the file ssh_config, but i can't edit it because it's read only. Did you already add somes keys in an heroku instance ? Flow -> User signup -> New Key is generated and the public_key is sent to the User and…
Guillaume Rebmann
  • 174
  • 1
  • 1
  • 10
1
vote
0 answers

GridDB node failed to start

I attempted to create a cluster in GridDB and followed the instructions outlined in the GridDB documentation, which can be accessed through the link: https://docs.griddb.net/architecture/structure-of-griddb/#status-of-cluster. Throughout the process…
Muhammad Waheed
  • 1,048
  • 1
  • 13
  • 30
1
vote
1 answer

Access Git Repository via SSH Tunnel as configuration

Our GitLab server isn't publicly accessible but we can establish SSH tunnels to GitLab via a Jumpbox. Running git commands over the tunnel works well, however I'm now looking for a solution to configure ssh to automatically establish the ssh tunnel…
clowa
  • 21
  • 6
1
vote
2 answers

Using ssh key-type ed25519 as standard type when generating a new key?

Is it possible to set key-type ed25519 as default in /etc/ssh/config or .ssh/config for ssh-keygen, so that it generates these key-types as a default? I looked at man ssh-keygen and the documentation of ssh-config, to no avail.
Grimaldi
  • 131
  • 4
1
vote
0 answers

Testing ssh connection inside ssh_config file

I'm working with a funny setup where the User ID on a remote cluster changes every 24-hours. I don't want to have to do either of these (1) Re-enter this ID every time I log in, using ssh NewID@thathost or ssh -l NewID thathost. (2) Edit the…
1
vote
0 answers

Srun command before running python vscode

Currently running some heavy python scripts within the following context - setup connecting to an sshProxy server Connecting to the SSH host Calling conda to activate env running the srun command to get GPU allocation srun -p normal.q --mem=20GB…
Idan Tank
  • 27
  • 5
1
vote
1 answer

Git Clone Works, but Fetch Fails with ssh config'ed Host

I can clone my repo from github using ssh, but can't fetch or push. I'm using an ssh config with a host entry, named gh-personal, that points to github.com and provides my pubkey. Furthermore, the usual debugging technique, setting GIT_SSH_COMMAND…
1
vote
1 answer

ssh does not read from ssh config

I have an ssh configuration file as follows Host default User git Hostname github.com IdentityFile ~/.ssh/id_rsa Host work User git Hostname github.com IdentityFile ~/.ssh/work Host para User git Hostname github.com …
not 0x12
  • 19,360
  • 22
  • 67
  • 133
1
vote
5 answers

Printing alias from ~/.ssh/config— with or without trailing hyphen

I have following file, it's a config file for ssh. Host vps2 # Linode HostName xxx.xx.xx.xxx User foo_user Host vps3 # Vultr HostName xxx.xx.xx.xxx User foo_user Host vps4 HostName xxx.xx.xx.xxx User foo_user Host vps5 …
Liso
  • 188
  • 2
  • 14
1
vote
1 answer

SSH Config - Extracting a substring from the %h token in Unix, Linux, and Windows

I have two different environments (production and develop) that both contain a box that have the same local DNS record ie: foo.example.com. I would like to make an entry in my SSH Config similar to the following so that I can just use a wildcard to…
rjoyce
  • 9
  • 4
1
vote
2 answers

Is there a way to use a previously specified ssh-config entry in specifying `Hostname`?

edit: I have seen cases where this works and cases where this doe not and I'm not sure I follow when/why it does. Suppose I have a complicated enough entry where I specify multiple parameters to get to thathost: Host thathost ControlMaster auto …
nhed
  • 5,774
  • 3
  • 30
  • 44
1
vote
1 answer

SSH Control master setup

I'm using ssh Control Master setup to connect to remote machines and using ControlPersist 16h and ControlPath ~/.ssh/master-%C options. It seems to work fine. But when my Mac goes to sleep, it deletes the sockets created above. Then I'm forced to…
Tissot11
  • 53
  • 2
1
vote
0 answers

Setup ssh_config with proxies when AllowTCPForwarding is not allowed

How can you write the following setup in an ssh config. ### The Bastion Host Host bastion-host-nickname HostName bastion-hostname ### The Remote Host Host remote-host-nickname HostName remote-hostname ProxyJump bastion-host-nickname ### The…
user5580578
  • 1,134
  • 1
  • 12
  • 28