OPENSSHをIndyにインストールする


■準備
◆ファイルの入手
http://freeware.sgi.com/からバイナリー版の以下のファイルを入手し、適当な場所(デフォルトでは/usr/dist)にセイブする。セイブせずにインストールできないファイルもあるので、一旦セイブする方が楽。

・openssh-2.5.1p2
・opnessl-0.9.6
・ORBit-0.5.7
・socks5-1.Or5
・libz-1.1.3

◆ OPENSSHの使用のために直接必要でないファイルもあるが、これらがないとインストールの際にConflictsを起し、インストールがうまくいかない。

#ls /usr/dist
fw_ORBit
fw_ORBit.idb
fw_ORBit.man
fw_ORBit.src
fw_ORBit.sw
fw_ORBit.sw64,
fw_libz
fw_libz.idb
fw_libz.man,
fw_libz.src
fw_libz.sw
fw_libz.sw64
fw_openssh
fw_openssh.idb
fw_openssh.man,
fw_openssh.src
fw_openssh.sw
fw_openssl
fw_openssl.idb
fw_openssl.man
fw_openssl.src,
fw_openssl.sw
fw_openssl.sw64
fw_socks5
fw_socks5.client_sw
fw_socks5.idb,
fw_socks5.man
fw_socks5.server_sw
fw_socks5.src

■OPESSHのインストール
# inst

Default distribution to install from: /usr/dist

For help on inst commands, type "help overview".

Inst 3.6 Main Menu

1. from [source ...] Specify location of software to be installed
2. open [source ...] Specify additional software locations
3. close [source ...] Close a software distribution location
4. list [keywords] [names] Display information about software subsystems
5. go Perform software installation and removal now
6. install [keywords] [names] Select subsystems to be installed
7. remove [keywords] [names] Select subsystems to be removed
8. keep [keywords] [names] Do not install or remove these subsystems
9. step [keywords] [names] Interactive mode for install/remove/keep
10. conflicts [choice ...] List or resolve installation conflicts
11. help [topic] Get help in general or on a specific word
12. view ... Go to the View Commands Menu
13. admin ... Go to the Administrative Commands Menu
14. quit Terminate software installation

◆インストールするファイルの置かれている場所を選定
Inst> 1
Previous installation sites:

1 /usr/dist
2 /usr/people/tku01/telnetd_patch
3 /var/tmp/tardista004h-
4 /var/tmp/MO3ADAC3910614B69.tardist
5 /CDROM/dist
6 none (no distribution, view installed products)
7 quit (no additional distributions, return to inst prompt)

Install software from: [/usr/dist]
Reading product descriptions .. 13%
Reading /var/inst/hist
Reading product descriptions .. 25%
Setting distribution to /usr/dist
Reading product descriptions .. 100% Done.

◆ファイルの詳細をリストアップ
Inst> 4
View: distribution
Status: N=new, U=upgrade, S=same, D=downgrade, P=patch upgrade
Status: A=installable patch, X=uninstallable patch
Stream: maint
Selection: i=install, r=remove, k=keep

Subsystem Types [bdrpo]: b=reBoot needed, d=Default, r=Required, p=patch, o=overlay

i N fw_ORBit.man.doc [d] 112+ ORBit-0.5.7 misc. documentation
i N fw_ORBit.man.info [d] 12+ ORBit-0.5.7 info pages
i N fw_ORBit.man.relnotes [d] 4+ ORBit-0.5.7 release notes
N fw_ORBit.src.ORBit 1064+ ORBit-0.5.7 original source code
i N fw_ORBit.sw.ORBit [d] 1288+ ORBit-0.5.7 execution only env
N fw_ORBit.sw.dev 3956+ ORBit-0.5.7 archive libraries
i N fw_ORBit.sw.hdr [d] 560+ ORBit-0.5.7 header files
i N fw_ORBit.sw.lib [d] 2444+ ORBit-0.5.7 shared libraries
N fw_ORBit.sw.use-egcs 0 ORBit-0.5.7 setup to use egcs
i N fw_ORBit.sw.use-gcc [d] 0 ORBit-0.5.7 setup to use gcc
N fw_ORBit.sw64.dev 2796+ ORBit-0.5.7 64-bit archive libraries
N fw_ORBit.sw64.lib 1336+ ORBit-0.5.7 64-bit shared libraries

i N fw_libz.man.libz [d] 4+ libz-1.1.3 man pages
i N fw_libz.man.relnotes [d] 4+ libz-1.1.3 Release Notes
N fw_libz.src.libz 168+ libz-1.1.3 original source code
N fw_libz.sw.dev 264+ libz-1.1.3 archive libraries
i N fw_libz.sw.hdr [d] 48+ libz-1.1.3 header files
i N fw_libz.sw.lib [d] 208+ libz-1.1.3 shared libraries
N fw_libz.sw64.dev 180+ libz-1.1.3 64-bit archive libraries
N fw_libz.sw64.lib 116+ libz-1.1.3 64-bit shared libraries

i N fw_openssh.man.openssh [d] 80+ openssh-2.5.1p2 man pages
i N fw_openssh.man.relnotes [d] 4+ openssh-2.5.1p2 release notes
N fw_openssh.src.openssh 584+ openssh-2.5.1p2 original source code
i N fw_openssh.sw.client [d] 884+ openssh-2.5.1p2 client software
i N fw_openssh.sw.contrib [d] 48+ openssh-2.5.1p2 contributed programs
i N fw_openssh.sw.server [d] 596+ openssh-2.5.1p2 server software
N fw_openssh.sw.socks-client 1196+ openssh-2.5.1p2 socks5 client software

i N fw_openssl.man.openssl [d] 856+ openssl-0.9.6 man pages
i N fw_openssl.man.relnotes [d] 4+ openssl-0.9.6 release notes
N fw_openssl.src.openssl 2044+ openssl-0.9.6 original source code
N fw_openssl.sw.dev 3876+ openssl-0.9.6 archive libraries
i N fw_openssl.sw.hdr [d] 848+ openssl-0.9.6 header files
i N fw_openssl.sw.lib [d] 4436+ openssl-0.9.6 shared libraries
N fw_openssl.sw64.dev 4992+ openssl-0.9.6 64-bit archive libraries
N fw_openssl.sw64.lib 4260+ openssl-0.9.6 64-bit shared libraries


Disk space summary (Kbytes): /

Current free space 2252616
- Selections net change 14700+
- Temporary inst overhead 688+
= Minimum free during install 2237228

Final projected free space 2237916

◆fw_opensshを選択(必ずConflictsが起きるが驚かない)
Inst> install fw_openssh

Inst> go
ERROR: Conflicts must be resolved.

fw_ORBit.sw.lib cannot be installed because of missing prerequisites:
1a. Do not install fw_ORBit.sw.lib (1237252620)
1b. Also install fw_ORBit.sw.use-egcs (1237252620 - 1237252620). Also
install fw_glib.sw.lib (1237000000 - 1239999900) from an additional
distribution -- insert another CD or specify another software
distribution.
1c. Also install fw_glib.sw.lib (1237000000 - 1239999900) from an
additional distribution -- insert another CD or specify another
software distribution.

fw_ORBit.sw.ORBit cannot be installed because of missing prerequisites:
2a. Do not install fw_ORBit.sw.ORBit (1237252620)
2b. Also install fw_ORBit.sw.use-egcs (1237252620 - 1237252620). Also
install fw_egcs.sw.egcs (1235725820 - 1239999900) and
fw_indent.sw.indent (1237034120 - 1239999900) from an additional
distribution -- insert another CD or specify another software
distribution.
2c. Also install fw_gcc.sw.gcc (1237034320 - 1239999900) and
fw_indent.sw.indent (1237034120 - 1239999900) from an additional
distribution -- insert another CD or specify another software
distribution.

◆conflictsの解決→opensshの機能が維持される最少の選択をし、他の選択を捨てる。その際いっぺんにconflicts 1b 2b 3b.......で解決できないわけではないが、何度かに分けて解決した方が楽。

Inst> conflicts 1b 2b
Note: this operation opens a distribution and selects all
of its default or upgrade products for install. If you
wish to open just a single product, append the product
name to the distribution name, as in /CDROM/dist/eoe.
See the "distribution" help topic for more information.
Enter new distribution from list:

1 /usr/dist
2 /usr/people/tku01/telnetd_patch
3 /var/tmp/tardista004h-
4 /var/tmp/MO3ADAC3910614B69.tardist
5 /CDROM/dist
6 quit (no additional distributions, return to inst prompt)

Install software from: [/usr/dist]
It appears that this distribution (/usr/dist) has already been opened. Are you sure you want to op
en this distribution again ? (y/n) y
Reading product descriptions .. 0%
Setting distribution to /usr/dist
Skipping product fw_ORBit (already open)
Reading product descriptions .. 10%
Skipping product fw_libz (already open)
Skipping product fw_openssh (already open)
Reading product descriptions .. 21%
Skipping product fw_openssl (already open)
Skipping product fw_socks5 (already open)
Reading product descriptions .. 31%
Skipping product fw_tcp_wrappers (already open)
Skipping product patchSG0004060 (already open)
Reading product descriptions .. 74%
Distribution is empty, or contains only products that are already open.
Skipping /usr/dist.
Reading product descriptions .. 100% Done.

◆何度かコンフリクトを修正

Inst> go
ERROR: Conflicts must be resolved.

fw_ORBit.sw.lib cannot be installed because of missing prerequisites:
1a. Do not install fw_ORBit.sw.lib (1237252620)
1b. Also install fw_glib.sw.lib (1237000000 - 1239999900) from an
additional distribution -- insert another CD or specify another
software distribution.
1c. Also install fw_glib.sw.lib (1237000000 - 1239999900) from an
additional distribution -- insert another CD or specify another
software distribution.

fw_ORBit.sw.ORBit cannot be installed because of missing prerequisites:
2a. Do not install fw_ORBit.sw.ORBit (1237252620)
2b. Also install fw_egcs.sw.egcs (1235725820 - 1239999900) and
fw_indent.sw.indent (1237034120 - 1239999900) from an additional
distribution -- insert another CD or specify another software
distribution.
2c. Also install fw_gcc.sw.gcc (1237034320 - 1239999900) and
fw_indent.sw.indent (1237034120 - 1239999900) from an additional
distribution -- insert another CD or specify another software
distribution.

fw_ORBit.man.relnotes cannot be installed because of missing prerequisites:

Inst> conflicts 1a 2a
・・・・・・・・
・・・・・・・・
Inst> conflicts 1b
No conflicts

◆"No conflicts"のサインが出たらgoを入力する。

Inst> go
Pre-installation check .. 8%
Checking space requirements .. 16%
Pre-installation check completed
Installing/removing files .. 16%
Installing new versions of selected fw_ORBit.man subsystems
Installing/removing files .. 19%
Installing new versions of selected fw_ORBit.sw subsystems
Installing/removing files .. 30%
Installing new versions of selected fw_libz.man subsystems
Installing new versions of selected fw_libz.sw subsystems
Installing/removing files .. 31%
Installing new versions of selected fw_openssh.man subsystems
Installing/removing files .. 33%
Installing new versions of selected fw_openssh.src subsystems
Installing/removing files .. 34%
Installing new versions of selected fw_openssh.sw subsystems
Installing/removing files .. 38%
Installing new versions of selected fw_openssl.man subsystems
Installing/removing files .. 68%
Installing new versions of selected fw_openssl.sw subsystems
Installing/removing files .. 84%
Installing new versions of selected fw_socks5.client_sw subsystems
Installing/removing files .. 87%
Installing new versions of selected fw_socks5.man subsystems
Installing/removing files .. 90%
Installing new versions of selected fw_socks5.server_sw subsystems
Installing/removing files .. 94%
Removing orphaned directories
Running exit-commands .. 94%
fw_openssh.sw.client: ( test -e $rbase/etc/ssh_host_key || $rbase/usr/freeware/bin/ssh-keygen -b 1024 -f $rbase/etc/ssh_host_key -N ''; test -e $rbase/etc/ssh_host_dsa_key ||
$rbase/usr/freeware/bin/ssh-keygen -d -f $rbase/etc/ssh_host_dsa_key -N '' )
Generating public/private rsa1 key pair.
Your identification has been saved in //etc/ssh_host_key.
Your public key has been saved in //etc/ssh_host_key.pub.
The key fingerprint is:
x2:9z:3vd:dn:d5:6b:8b:66:01:dm:0e:90:23:y2:n9 xxxxx@server
Generating public/private dsa key pair.
Your identification has been saved in //etc/ssh_host_dsa_key.
Your public key has been saved in //etc/ssh_host_dsa_key.pub.
The key fingerprint is:
45:9z:3vd:dn:d5:6b:8b:66:01:dm:0e:90:23:y2:n9 xxxxx@server
Running exit-commands .. 99%
Checking dependencies .. 100% Done.
Installations and removals were successful.
You may continue with installations or quit now.

Inst> q
Requickstarting ELF files (see rqsall(1)) .. 100% Done.

■以上でインストールは終わり、opensshの設定に入る。
◆checkconfigのチェック

# chkconfig
Flag State
==== =====

network on
xxxxxx
xxxxxx
routed on
sshd off ←ここ

◆sshdをONにする
# chkconfig sshd on

◆sshdデーモンをスタートさせる
# /etc/init.d/sshd start


●アクセスの仕方(インストールしたマシンから外部のマシンにsshでアクセスしてみる)

% ssh zzzz.xxxx.com
The authenticity of host 'ssh zzzz,xxxx.com (24.13.201.46)' can't be established.
RSA1 key fingerprint is x2:9z:3vd:dn:d5:6b:8b:66:01:dm:0e:90:23:y2:n9.

◆アクセスを恒久化するかどうかをきいてくる

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '210.130.186.57' (RSA1) to the list of known hosts.
zzz@zzzz.xxxx.com's password:
Last login: Sat Jul 14 16:19:55 2001

■Windowsからのアクセスには、Teratermn ProにSSH Extention、TTSSHを付加するのが簡便。
◆入手先:http://www.zip.com.au/~download.html
◆ダウンロードしたttssh154.zipを解凍し、ttssh.exe/ttssh.dll/libeay32.dllの3つのファイルをTeratermProのフォールダーにコピー/移動する。ttssh.exeから起動すれば、SSHの選択ボタンのついたTeratermProが立ち上がる。

Top