![](https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_150,h_150/https://engineer-log.net/wp-content/uploads/2017/10/20170512131857.jpg)
scpできなくて私もハマった
問題 scpがエラー無く終わるが、何も転送されていない % scp otiai10@foobar.com:~/test.txt ~/ Enter passphrase for key '/User/otiai10/.ssh/foobar': foobar % % ls -la | grep test.txt % # ← あれーん? tl;dr, 解決 リモート側の.bashrcでログイン時にログインしたホスト名を出力するようにしていたのが原因だったっぽい?(ナンデ?) # リモートの~/.bashrc ### 以下をコメントアウトしたら動いた hostname 参考 Linux scp com…