Hallo zusammen,
nachdem ich leider Probleme mit dem mitgelieferten sshd habe und ungern zu viel umkonfigurieren würde, war meine Idee einach über ipkg einen
zweiten ssh Server über einen anderen Port zu betreiben.
Gesagt getan, IPKG meldet mir jedoch im Installer
Also habe ich zunächst per Hand probiert den sshd in /opt/sbin/sshd zu starten:
Noch ein Ansatz
und der Output
Eventuell wird jemand schlau draus und kann mir weiterhelfen?
Vielen Dank.
nachdem ich leider Probleme mit dem mitgelieferten sshd habe und ungern zu viel umkonfigurieren würde, war meine Idee einach über ipkg einen
zweiten ssh Server über einen anderen Port zu betreiben.
Gesagt getan, IPKG meldet mir jedoch im Installer
Code:
Generating RSA Key...
Generating DSA Key...
Fixing permissions on the /tmp directory...
ERROR: openssh.postinst returned 139
Successfully terminated
Also habe ich zunächst per Hand probiert den sshd in /opt/sbin/sshd zu starten:
Code:
admin@nas:/$ sudo /opt/sbin/sshd
Segmentation fault (core dumped)
Noch ein Ansatz
Code:
admin@nas:/$ sudo /opt/bin/strace /opt/sbin/sshd
und der Output
Code:
execve("/opt/sbin/sshd", ["/opt/sbin/sshd"], [/* 14 vars */]) = 0
brk(0) = 0x1047000
uname({sys="Linux", node="nas", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aae6000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/v7l/vfp/libcrypto.so.0.9.8", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/v7l/vfp", 0x7ee9d488) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/v7l/libcrypto.so.0.9.8", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/v7l", 0x7ee9d488) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/vfp/libcrypto.so.0.9.8", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls/vfp", 0x7ee9d488) = -1 ENOENT (No such file or directory)
open("/opt/lib/tls/libcrypto.so.0.9.8", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls", 0x7ee9d488) = -1 ENOENT (No such file or directory)
open("/opt/lib/v7l/vfp/libcrypto.so.0.9.8", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/v7l/vfp", 0x7ee9d488) = -1 ENOENT (No such file or directory)
open("/opt/lib/v7l/libcrypto.so.0.9.8", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/v7l", 0x7ee9d488) = -1 ENOENT (No such file or directory)
open("/opt/lib/vfp/libcrypto.so.0.9.8", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/vfp", 0x7ee9d488) = -1 ENOENT (No such file or directory)
open("/opt/lib/libcrypto.so.0.9.8", O_RDONLY|0x80000) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\240v\3\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1228752, ...}) = 0
mmap2(NULL, 1240244, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ab3b000
mmap2(0x2ac53000, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x118) = 0x2ac53000
mmap2(0x2ac67000, 11444, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ac67000
close(3) = 0
open("/opt/lib/libdl.so.2", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
open("/lib/tls/v7l/vfp/libdl.so.2", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v7l/vfp", 0x7ee9d470) = -1 ENOENT (No such file or directory)
open("/lib/tls/v7l/libdl.so.2", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v7l", 0x7ee9d470) = -1 ENOENT (No such file or directory)
open("/lib/tls/vfp/libdl.so.2", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/vfp", 0x7ee9d470) = -1 ENOENT (No such file or directory)
open("/lib/tls/libdl.so.2", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0x7ee9d470) = -1 ENOENT (No such file or directory)
open("/lib/v7l/vfp/libdl.so.2", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/lib/v7l/vfp", 0x7ee9d470) = -1 ENOENT (No such file or directory)
open("/lib/v7l/libdl.so.2", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/lib/v7l", 0x7ee9d470) = -1 ENOENT (No such file or directory)
open("/lib/vfp/libdl.so.2", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
stat64("/lib/vfp", 0x7ee9d470) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY|0x80000) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0l\t\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=9792, ...}) = 0
mmap2(NULL, 73912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ac6a000
mprotect(0x2ac6c000, 61440, PROT_NONE) = 0
mmap2(0x2ac7b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x2ac7b000
close(3) = 0
open("/opt/lib/libutil.so.1", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
open("/lib/libutil.so.1", O_RDONLY|0x80000) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0000\n\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=9828, ...}) = 0
mmap2(NULL, 73904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2aacb000
mprotect(0x2aacd000, 61440, PROT_NONE) = 0
mmap2(0x2aadc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x2aadc000
close(3) = 0
open("/opt/lib/libz.so.1", O_RDONLY|0x80000) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\340\24\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=89524, ...}) = 0
mmap2(NULL, 121036, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ac7d000
mprotect(0x2ac93000, 28672, PROT_NONE) = 0
mmap2(0x2ac9a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0x2ac9a000
close(3) = 0
open("/opt/lib/libnsl.so.1", O_RDONLY|0x80000) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0P.\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=98394, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaf6000
mmap2(NULL, 112212, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ac9b000
mprotect(0x2acac000, 28672, PROT_NONE) = 0
mmap2(0x2acb3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0x2acb3000
mmap2(0x2acb5000, 5716, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2acb5000
close(3) = 0
open("/opt/lib/libcrypt.so.1", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
open("/lib/libcrypt.so.1", O_RDONLY|0x80000) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0L\10\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=30272, ...}) = 0
mmap2(NULL, 254304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2acb7000
mprotect(0x2acbe000, 61440, PROT_NONE) = 0
mmap2(0x2accd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0x2accd000
mmap2(0x2accf000, 156000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2accf000
close(3) = 0
open("/opt/lib/libresolv.so.2", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
open("/lib/libresolv.so.2", O_RDONLY|0x80000) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\340$\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=75608, ...}) = 0
mmap2(NULL, 149420, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2acf6000
mprotect(0x2ad07000, 65536, PROT_NONE) = 0
mmap2(0x2ad17000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0x2ad17000
mmap2(0x2ad19000, 6060, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ad19000
close(3) = 0
open("/opt/lib/libc.so.6", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY|0x80000) = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\210f\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=1214128, ...}) = 0
mmap2(NULL, 1283464, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ad1b000
mprotect(0x2ae40000, 61440, PROT_NONE) = 0
mmap2(0x2ae4f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x124) = 0x2ae4f000
mmap2(0x2ae52000, 9608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ae52000
close(3) = 0
open("/opt/lib/ld-linux.so.3", O_RDONLY|0x80000) = -1 ENOENT (No such file or directory)
open("/lib/ld-linux.so.3", O_RDONLY|0x80000) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\300\n\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=134420, ...}) = 0
mmap2(NULL, 198996, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae55000
mprotect(0x2ae74000, 65536, PROT_NONE) = 0
mmap2(0x2ae84000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f) = 0x2ae84000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ae86000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2af03000
set_tls(0x2af034c0, 0x2af03ba8, 0x2ab3a050, 0x2af034c0, 0x2ab3a050) = 0
mprotect(0x2ae84000, 4096, PROT_READ) = 0
mprotect(0x2ae4f000, 8192, PROT_READ) = 0
mprotect(0x2ad17000, 4096, PROT_READ) = 0
mprotect(0x2accd000, 4096, PROT_READ) = 0
mprotect(0x2acb3000, 4096, PROT_READ) = 0
mprotect(0x2aadc000, 4096, PROT_READ) = 0
mprotect(0x2ac7b000, 4096, PROT_READ) = 0
mprotect(0x2ab39000, 4096, PROT_READ) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault
Eventuell wird jemand schlau draus und kann mir weiterhelfen?
Vielen Dank.