summaryrefslogtreecommitdiff
path: root/Assistant/Ssh.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-06-25 14:46:20 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-06-25 14:46:20 -0400
commit077de67a8695da525f79a7a1e58ad9fa535ca8b1 (patch)
tree4d5b2cfcd760f8648dcf5b4320fba73848b75e6b /Assistant/Ssh.hs
parent8e7e5684c469652a95d654d7f0f93abd041d9c06 (diff)
webapp: Fix bug when setting up a remote ssh repo repeatedly on the same server.
The ssh setup first runs ssh to the real hostname, to probe if a ssh key is needed. If one is, it generates a mangled hostname that uses a key. This mangled hostname was being used to ssh into the server to set up the key. But if the server already had the key set up, and it was locked down, the setup would fail. This changes it to use the real hostname when sshing in to set up the key, which avoids the problem. Note that it will redundantly set up the key on the ssh server. But it's the same key; the ssh key generation code uses the key if it already exists.
Diffstat (limited to 'Assistant/Ssh.hs')
0 files changed, 0 insertions, 0 deletions