scp は .ssh/config をサポートしません。

scp は .ssh/config をサポートしません。

数年間使用号4私のSSH2接続のデフォルトパスワード~/.ssh/config文書

host namaka
    hostname localhost
    port 2022
    ciphers arcfour
    IdentityFile ~/.ssh/virtualbox
    compression true
    StrictHostKeyChecking no
    user kermit 

Debian 8にアップグレードした後、このパスワードはデフォルトのSSH設定で無効になり、次のエラーが発生することがわかりました。

no matching cipher found: client arcfour server aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]

だから私を変えた~/.ssh/config到着

host namaka
    hostname localhost
    port 2022
    ciphers aes256-ctr
    IdentityFile ~/.ssh/virtualbox
    compression true
    StrictHostKeyChecking no
    user kermit

(パスワードaes256に注意してください。)SSH接続が再び機能します。

kermit@euroforce:~$ ssh kermit@namaka

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jul 16 00:20:21 2015 from 10.0.2.2
kermit@namaka:~$ 

残念ながら私はまだ一致するパスワードがありません。scpを実行しようとするとエラーが発生します。

kermit@euroforce:~$ scp foo  kermit@namaka:/tmp/
no matching cipher found: client arcfour server aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
lost connection

scpが以前のパスワードをどこかにキャッシュしておき、新しいパスワードを使用したくないようです。

コマンドラインでパスワードを強制することで機能します。

kermit@euroforce:~$ scp -c aes256-ctr foo  kermit@namaka:/tmp/foo2
foo                                                                 100%    0     0.0KB/s   00:00  

強制プロファイルが機能しません。

kermit@euroforce:~$ scp -C .ssh/config foo  kermit@namaka:/tmp/foo2
no matching cipher found: client arcfour server aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
lost connection

どんな手がかりがありますか?

ベストアンサー1

犯人を見つけました。数年前に作った後、忘れてしまったbashエイリアスでした。

alias scp='scp -c arcfour'

私は本当に恥ずかしい

おすすめ記事