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
F17713588: D18241.diff
Thu, Jul 17, 2:20 PM
Unknown Object (File)
Fri, Jun 27, 5:45 PM
Unknown Object (File)
Thu, Jun 19, 8:22 PM
Unknown Object (File)
May 8 2025, 12:07 PM
Unknown Object (File)
Apr 24 2025, 4:34 PM
Unknown Object (File)
Apr 19 2025, 4:26 PM
Unknown Object (File)
Apr 18 2025, 4:14 PM
Unknown Object (File)
Mar 19 2025, 12:17 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