Solaris ssh from DVD: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
No edit summary |
m (Text replacement - "</source" to "</syntaxhighlight") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[ | [[Category:Solaris|SSH]] | ||
=Get SSH on a system bootet from DVD= | =Get SSH on a system bootet from DVD= | ||
==Mount DVD== | ==Mount DVD== | ||
< | <syntaxhighlight lang=bash> | ||
# iostat -En | # iostat -En | ||
c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 | c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 | ||
Line 12: | Line 12: | ||
# mkdir /tmp/dvd | # mkdir /tmp/dvd | ||
# mount -F hsfs -oro /dev/dsk/c0t0d0s0 /tmp/dvd | # mount -F hsfs -oro /dev/dsk/c0t0d0s0 /tmp/dvd | ||
</ | </syntaxhighlight> | ||
==Unpacking software== | ==Unpacking software== | ||
< | <syntaxhighlight lang=bash> | ||
# mkdir /tmp/pkg | # mkdir /tmp/pkg | ||
# pkgtrans /tmp/dvd/Solaris_10/Product /tmp/pkg SUNWsshu SUNWcry SUNWopenssl-libraries | # pkgtrans /tmp/dvd/Solaris_10/Product /tmp/pkg SUNWsshu SUNWcry SUNWopenssl-libraries | ||
Line 23: | Line 23: | ||
# 7z x -so /tmp/pkg/SUNWcry/archive/none.7z | cpio -idv | # 7z x -so /tmp/pkg/SUNWcry/archive/none.7z | cpio -idv | ||
# 7z x -so /tmp/pkg/SUNWopenssl-libraries/archive/none.7z | cpio -idv | # 7z x -so /tmp/pkg/SUNWopenssl-libraries/archive/none.7z | cpio -idv | ||
</ | </syntaxhighlight> | ||
== | ==Use unpacked libraries== | ||
< | <syntaxhighlight lang=bash> | ||
# crle -c /var/ld/ld.config -l /tmp/ssh/usr/sfw/lib:/lib:/usr/lib | # crle -c /var/ld/ld.config -l /tmp/ssh/usr/sfw/lib:/lib:/usr/lib | ||
# crle | # crle | ||
Line 37: | Line 37: | ||
Command line: | Command line: | ||
crle -c /var/ld/ld.config -l /tmp/ssh/usr/sfw/lib:/lib:/usr/lib | crle -c /var/ld/ld.config -l /tmp/ssh/usr/sfw/lib:/lib:/usr/lib | ||
</ | </syntaxhighlight> | ||
==Check it== | ==Check it== | ||
< | <syntaxhighlight lang=bash> | ||
# ldd /tmp/ssh/usr/bin/ssh | # ldd /tmp/ssh/usr/bin/ssh | ||
libsocket.so.1 => /lib/libsocket.so.1 | libsocket.so.1 => /lib/libsocket.so.1 | ||
Line 56: | Line 57: | ||
libcrypto_extra.so.0.9.7 => /tmp/ssh/usr/sfw/lib/libcrypto_extra.so.0.9.7 | libcrypto_extra.so.0.9.7 => /tmp/ssh/usr/sfw/lib/libcrypto_extra.so.0.9.7 | ||
libm.so.2 => /lib/libm.so.2 | libm.so.2 => /lib/libm.so.2 | ||
</ | </syntaxhighlight> | ||
Looks good: | Looks good: | ||
* libcrypto_extra.so.0.9.7 => /tmp/ssh/usr/sfw/lib/libcrypto_extra.so.0.9.7 | * libcrypto_extra.so.0.9.7 => /tmp/ssh/usr/sfw/lib/libcrypto_extra.so.0.9.7 | ||
==Use ssh from /tmp/ssh== | ==Use ssh from /tmp/ssh== | ||
< | <syntaxhighlight lang=bash> | ||
# /tmp/ssh/usr/bin/ssh <user>@<ip> | # /tmp/ssh/usr/bin/ssh <user>@<ip> | ||
</ | </syntaxhighlight> |
Latest revision as of 23:56, 25 November 2021
Get SSH on a system bootet from DVD
Mount DVD
# iostat -En
c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: AMI Product: Virtual CDROM Revision: 1.00 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 732 Predictive Failure Analysis: 0
...
# mkdir /tmp/dvd
# mount -F hsfs -oro /dev/dsk/c0t0d0s0 /tmp/dvd
Unpacking software
# mkdir /tmp/pkg
# pkgtrans /tmp/dvd/Solaris_10/Product /tmp/pkg SUNWsshu SUNWcry SUNWopenssl-libraries
# mkdir /tmp/ssh
# cd /tmp/ssh
# 7z x -so /tmp/pkg/SUNWsshu/archive/none.7z | cpio -idv
# 7z x -so /tmp/pkg/SUNWcry/archive/none.7z | cpio -idv
# 7z x -so /tmp/pkg/SUNWopenssl-libraries/archive/none.7z | cpio -idv
Use unpacked libraries
# crle -c /var/ld/ld.config -l /tmp/ssh/usr/sfw/lib:/lib:/usr/lib
# crle
Configuration file [version 4]: /var/ld/ld.config
Platform: 32-bit LSB 80386
Default Library Path (ELF): /tmp/ssh/usr/sfw/lib:/lib:/usr/lib
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)
Command line:
crle -c /var/ld/ld.config -l /tmp/ssh/usr/sfw/lib:/lib:/usr/lib
Check it
# ldd /tmp/ssh/usr/bin/ssh
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libz.so.1 => /usr/lib/libz.so.1
libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7
libgss.so.1 => /usr/lib/libgss.so.1
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libcmd.so.1 => /lib/libcmd.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
libcrypto_extra.so.0.9.7 => /tmp/ssh/usr/sfw/lib/libcrypto_extra.so.0.9.7
libm.so.2 => /lib/libm.so.2
Looks good:
- libcrypto_extra.so.0.9.7 => /tmp/ssh/usr/sfw/lib/libcrypto_extra.so.0.9.7
Use ssh from /tmp/ssh
# /tmp/ssh/usr/bin/ssh <user>@<ip>