3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cygwin のssh でHOMEを変えていると怒られる件

Posted at

Cygwinは普通に使うとホームディレクトリが ${Cygwinインストール場所}/home/ore になります。(ユーザーが ore の場合の例ね)

Windowsのユーザーホームと合わせたいですよね。

ホームディレクトリを変える

Windowsの環境変数HOMEにホームディレクトリにしたい場所を設定します。

HOME = D:\Users\ore

#自分はDドライブにユーザーホームを引っ越しているので。。。

.ssh/known_hostがどうのと怒られる対策

そのままだと何故か、 /home/ore/.ssh/known_host を作りに行って怒られます。
/etc/passwd に書かれているホームディレクトリの場所が /home/ore のままになっているので、こいつを /cygdrive/d/Users/ore みたいに書き換えればOK.

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?