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
Unknown Object (File)
Sun, Mar 31, 10:10 PM
Unknown Object (File)
Sat, Mar 23, 6:55 AM
Unknown Object (File)
Mar 5 2024, 8:00 AM
Unknown Object (File)
Jan 22 2024, 10:59 AM
Unknown Object (File)
Jan 20 2024, 4:39 PM
Unknown Object (File)
Jan 16 2024, 5:07 PM
Unknown Object (File)
Jan 12 2024, 4:43 PM
Unknown Object (File)
Jan 8 2024, 5:11 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