Page MenuHomePhabricator

Suppress "Permanently added ... to the list of known hosts" messages
Needs ReviewPublic

Authored by joshuaspence on Jul 19 2017, 1:07 PM.
Tags
None
Referenced Files
F18092458: D18241.diff
Thu, Aug 7, 10:35 AM
F17871333: D18241.id.diff
Mon, Jul 28, 3:43 PM
F17730243: D18241.id43873.diff
Jul 19 2025, 9:30 PM
F17713588: D18241.diff
Jul 17 2025, 2:20 PM
Unknown Object (File)
Jun 27 2025, 5:45 PM
Unknown Object (File)
Jun 19 2025, 8:22 PM
Unknown Object (File)
May 8 2025, 12:07 PM
Unknown Object (File)
Apr 24 2025, 4:34 PM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

bin/ssh-connect is a wrapper around ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null. This combination of options means that the following warning will always be written to stderr:

ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -T dweller@secure.phabricator.com
Warning: Permanently added 'secure.phabricator.com,52.9.197.161' (RSA) to the list of known hosts.
phabricator-ssh-exec: Welcome to Phabricator.

You are logged in as joshuaspence.

You haven't specified a command to run. This means you're requesting an interactive shell, but Phabricator does not provide an interactive shell over SSH.

Usually, you should run a command like `git clone` or `hg push` rather than connecting directly with SSH.

Supported commands are: conduit, git-lfs-authenticate, git-receive-pack, git-upload-pack, hg, svnserve.
Test Plan

Played around with ssh locally.

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17736
Build 23815: Run Core Tests
Build 23814: arc lint + arc unit