Cygwin
  Cygwin って何
  主要な話題
    Cygwin に特有
    Unix 一般
  Netinstaller
    流れ
      Download Folder
      setup.exe を起動
      setup.exe の操作
    Download Folder
      新規作成
      新しいフォルダ
      Download
    全てを選ぶ
  Hello メモ帳
  cc
  H8/300 Cross
    パッケージ
      binary
      pkgsrc
    使い方
      準備
    gcc
      as
    objdump
    objcopy
    ld
    readelf
    蛇足
  pkgsrc
    bootstrap
      既製品を利用する
      枠を用意する
      自分で作る
      bmake
      既製品を作る
  sudo
    特権作業
    Cygwin の場合
  管理者として実行
    文字化け
  sshd
URL

Sofware -> Cygwin
Last Update: "2014/02/24 22:44:58 makoto"

文字化け

(文字化けの場合)-> 2014/02/06 の日記

sshd

Cygwin Terminal を (右クリックから) 「管理者として実行する」で開けた窓で
% /usr/sbin/sshd /etc/sshd_config: No such file or directory

Use ssh-host-config script.
% ssh-host-config -y
ここで cyg_server の ID を作るのにパスワードを聞いて来る
*** Warning: Creating the user 'cyg_server' failed! Reason:
システムエラー5 が発生しました。
「アクセスが拒否されました」
が出るのは、上記 「管理者として実行する」
をしていない時かと思われます。

なお、この時に、入力したパスワードが表示されるので、 写す時などには注意が必要です。

$ ssh localhost ssh: connect to host localhost port22: Connection refused
これは sshd 処理がまだ動いていないため
$ /usr/sbin/sshd /var/empty must be owned by root and not group or world-writable.
$ ls -la /var/empty drwxr-xr-x+ 1 cyg_server root 0 Feb 7 12:22 . drwxr-xr-x+ 1 makoto None 0 Feb 7 12:22 .. $ ls -lan /var/empty drwxr-xr-x+ 1 1003 0 0 Feb 7 12:22 . drwxr-xr-x+ 1 1000 513 0 Feb 7 12:22 ..
$ net start sshd.
7. Installing Cygwin and Starting the SSH Daemon (Oracle.com)
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm
7.4 Configuring SSH After Installing Cygwin
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#CHDJDBIA
OpenSSH for Windows
ファイアウォールTCP 22番ポートを空ける
http://kilin.clas.kitasato-u.ac.jp/howto/sshdwin.html
Windows 7 の場合:
コントロール・パネル 
   → Windows ファイアウォール 
      → (左端の) 詳細設定 
          → (左端の)受信の規則
             → (左側の窓の) 「受信の規則」で(右クリック)
                 → 新しい規則
                     ポート (を選んで) → 次へ  
                      22 → 次へ 
                       TCP 
                       特定のローカルポート (22)
			  → 次へ  
                           接続を許可する → 次へ  
                                v ドメイン
				v プライべート
				v パブリック
				→ 次へ  
				  名前  ssh .. (何でも良い、後に設定時に参照するため)
                                    (完了)
(これで外から passwd で入れるようになるので、 公開鍵の設定をしてから
(もしなければ) ssh-keygen をして ~/.ssh/id_rsa.pub を作る。それを相手側の ~/.ssh/authorized_keys に書加える passwd では入れないようにする
Last Update: Sat, 05 Jul 2014 02:17:03 GMT 1.66 2008/03/08