Solaris ssh from DVD: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
m (Text replacement - "[[Kategorie:" to "[[Category:") |
m (Text replacement - "<source " to "<syntaxhighlight ") |
||
Line 2: | Line 2: | ||
=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 15: | Line 15: | ||
==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 26: | Line 26: | ||
==Use unpacked libraries== | ==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 40: | Line 40: | ||
==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 61: | Line 61: | ||
* 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> | ||
</source> | </source> |
Revision as of 17:02, 25 November 2021
Get SSH on a system bootet from DVD
Mount DVD
<syntaxhighlight lang=bash>
- 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
</source>
Unpacking software
<syntaxhighlight lang=bash>
- 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
</source>
Use unpacked libraries
<syntaxhighlight lang=bash>
- 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
</source>
Check it
<syntaxhighlight lang=bash>
- 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
</source> Looks good:
- libcrypto_extra.so.0.9.7 => /tmp/ssh/usr/sfw/lib/libcrypto_extra.so.0.9.7
Use ssh from /tmp/ssh
<syntaxhighlight lang=bash>
- /tmp/ssh/usr/bin/ssh <user>@<ip>
</source>