Linux deploy ssh failed

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch Linux extra/ssh start failed #1129

Arch Linux extra/ssh start failed #1129

Comments

I’m using aarch64 architecture. Debug log output like this

[11:02:03] ## extra/ssh : do_start [11:02:03] :: Starting extra/ssh . ls: /data/local/mnt/etc/ssh/: No such file or directory [11:02:03] -bash: ssh-keygen: command not found [11:02:03] -bash: /usr/sbin/sshd: No such file or directory [11:02:03] fail 

The text was updated successfully, but these errors were encountered:

Have you went to the three dots button and click «Install»?

Yes I clicked «Install», the other parts of system installed correctly, but extra/ssh does not work. I think there maybe something missing in the installation script, but I’m not sure. I tried «Configure» return the same result. Now I’m using Debian without this problem.

Can you try again with Linux Deploy 2.5.0? Seems like it fixed something on Arch Linux. (check changelog.md)

I updated to 2.5.0, but this issue still exists. Here’s my log.

[15:55:12] looking for conflicting packages. [15:55:12] [15:55:12] Packages (23) bash-5.0.011-1 db-5.3.28-4 dnssec-anchors-20190629-1 e2fsprogs-1.45.4-1 filesystem-2019.10-1 gcc-libs-8.3.0-1 gdbm-1.18.1-2 glibc-2.29-1 iana-etc-20191031-1 keyutils-1.6.1-1 krb5-1.17-1 ldns-1.7.1-1 libedit-20191025_3.1-1 libldap-2.4.48-1 libsasl-2.1.27-1 libutil-linux-2.34-3 linux-api-headers-5.3.1-1 ncurses-6.1-6 openssl-1.1.1.d-1 perl-5.30.0-3.1 readline-8.0.001-1 tzdata-2019c-2 openssh-8.1p1-1 [15:55:12] [15:55:12] Total Download Size: 54.91 MiB [15:55:12] Total Installed Size: 260.58 MiB [15:55:12] :: Proceed with installation? [Y/n] + rm -f '/data/local/mnt/var/cache/pacman/pkg/*' [15:55:12] + exit 0 [15:55:12] + return 0 [15:55:12] + do_configure [15:55:12] + msg ':: Configuring extra/ssh . ' [15:55:12] + echo ':: Configuring extra/ssh . ' [15:55:12] :: Configuring extra/ssh . [15:55:12] + local sshd_config [15:55:12] + sshd_config=/data/local/mnt/etc/ssh/sshd_config [15:55:12] + sed -i -E 's/#?PasswordAuthentication .*/PasswordAuthentication yes/g' /data/local/mnt/etc/ssh/sshd_config [15:55:12] sed: /data/local/mnt/etc/ssh/sshd_config: No such file or directory [15:55:12] + sed -i -E 's/#?PermitRootLogin .*/PermitRootLogin yes/g' /data/local/mnt/etc/ssh/sshd_config [15:55:12] sed: /data/local/mnt/etc/ssh/sshd_config: No such file or directory [15:55:12] + sed -i -E 's/#?AcceptEnv .*/AcceptEnv LANG/g' /data/local/mnt/etc/ssh/sshd_config [15:55:12] sed: /data/local/mnt/etc/ssh/sshd_config: No such file or directory [15:55:12] + return 0 

I noticed that the script want to delete all package cache when there’s an installation confirm message, causes nothing installed in extra/ssh.

Читайте также:  Linux как работает vmware

That’s weird. I’ve never seen this before.

My device is aarch64 and installed centos 7 aarch64

I was block by this problem few days ago

And I try a lot ways to fix this like reinstall the linux-deploy & busybox and change image, adb remount .

Finally I work it out through change the source address to alibaba .
https://mirrors.aliyun.com/centos-altarch/

That’s for CentOS, doesn’t work on Arch.
Also the problem you have is caused by bad mirrors, but here we don’t get this problem.

Yeah, can confirm i nave this issue with arch, it just exit before actually installing openssh and so it can’t find the configuration file nor start the service.

Can confirm that, fresh Arch installation hangs on extra/ssh.

A simple fix (user side) is to mount the image, chroot into it and manually install openssh, this way you can click configure and let it do the thing. The only problem is that pacman will say that the file are already present on the file system, but if you pass ‘ —overwrite=»*» ‘ it should not break the system and work anyway.

Источник

Linux deploy ssh failed

A community for sharing and promoting free / libre and open source software on the Android platform. This means software you are free to modify and distribute, such as applications licensed under the GNU General Public License, BSD license, MIT license, Apache license, etc. and software that isn’t designed to restrict you in any way. Think of free software as free as in freedom of speech, not free beer. Also join us on Lemmy: https://social.fossware.space

Читайте также:  Linux while do one line

I was able to use Arch(ARM) with LD and SSH was successfully started.

But it’s failing on Alpine rootfs’es. I tried with alpine uboot, minirootfs.

[21:56:13] >>> deploy [21:56:13] :: Installing bootstrap/rootfs . [21:56:13] Checking installation path . done [21:56:14] Making file system (ext4) . done [21:56:14] Checking file system . done [21:56:14] Mounting the container: [21:56:14] / . done [21:56:14] /proc . done [21:56:14] /sys . done [21:56:14] /dev . done [21:56:14] /dev/shm . done [21:56:14] /dev/pts . done [21:56:14] Importing rootfs from tar.gz archive . done [21:56:14] :: Configuring core/motd . [21:56:14] :: Configuring core/hosts . [21:56:14] :: Configuring core/hostname . [21:56:14] :: Configuring core/mnt . [21:56:14] :: Configuring core/net . [21:56:14] :: Configuring core/timezone . [21:56:14] :: Configuring core/su . [21:56:14] :: Configuring core/locale . [21:56:14] :: Configuring core/aid . [21:56:16] :: Configuring core/profile . [21:56:16] :: Configuring core/sudo . [21:56:16] :: Configuring core/unchroot . [21:56:16] :: Installing extra/ssh . [21:56:16] :: Configuring extra/ssh . [21:56:16] >> start [21:56:18] Checking file system . skip [21:56:18] Mounting the container: [21:56:18] / . skip [21:56:18] /proc . skip [21:56:18] /sys . skip [21:56:18] /dev . skip [21:56:18] /dev/shm . skip [21:56:18] /dev/pts . skip [21:56:18] :: Configuring core/mnt . [21:56:18] :: Configuring core/net . [21:56:18] :: Starting extra/ssh . fail [21:56:18]

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Читайте также:  Reading logs in linux

Already on GitHub? Sign in to your account

Can’t start SSH and VNC Services. #301

Can’t start SSH and VNC Services. #301

Comments

I get an error when installing Linux

[09:15:11] Disassociating loop device . done [09:15:11] >> install [09:15:15] The container is already mounted. [09:15:15] Mounting partitions: [09:15:15] / . skip [09:15:15] Installing Debian-based distribution: [09:15:15] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: /data/data/ru.meefik.linuxdeploy/linux/share/debootstrap/debootstrap: line 354: tr: Permission denied [09:15:15] >> configure [09:15:25] Configuring the container: [09:15:25] qemu . done [09:15:25] dns . fail [09:15:25] mtab . fail [09:15:26] motd . fail [09:15:26] hosts . done [09:15:26] hostname . fail [09:15:26] timezone . fail [09:15:26] su . done [09:15:26] sudo . fail [09:15:26] groups . fail [09:15:26] locales . fail [09:15:26] repository . fail [09:15:26] profile . fail [09:15:26] dbus . fail [09:15:26] xorg . fail [09:15:26] unchroot . fail [09:15:26] android . fail [09:15:26] misc . done [09:15:26] Installing additional components: [09:15:26] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: line 1989: chroot: Permission denied [09:15:26] >> stop [09:17:08] Stopping services: [09:17:08] SSH . done [09:17:08] VNC . fail [09:17:08] Release resources . done [09:17:08] Unmounting partitions: [09:17:08] . nothing mounted [09:17:08] Disassociating loop device . done [09:17:09] >> start [09:19:47] Mounting partitions: [09:19:47] / . skip [09:19:47] /proc . skip [09:19:47] /sys . skip [09:19:47] /dev . skip [09:19:47] /dev/tty . skip [09:19:47] /dev/pts . skip [09:19:47] /dev/shm . skip [09:19:47] Configuring the container: [09:19:47] dns . fail [09:19:47] mtab . fail [09:19:47] Starting services: [09:19:47] SSH [:22] . fail [09:19:48] VNC [:5900] . fail [09:19:48] >> start [09:19:53] Mounting partitions: [09:19:53] / . skip [09:19:53] /proc . skip [09:19:53] /sys . skip [09:19:53] /dev . skip [09:19:53] /dev/tty . skip [09:19:53] /dev/pts . skip [09:19:53] /dev/shm . skip [09:19:53] Configuring the container: [09:19:53] dns . fail [09:19:53] mtab . fail [09:19:53] Starting services: [09:19:53] SSH [:22] . fail [09:19:53] VNC [:5900] . fail [09:19:53] >> start [09:20:46] Mounting partitions: [09:20:46] / . skip [09:20:46] /proc . skip [09:20:46] /sys . skip [09:20:46] /dev . skip [09:20:46] /dev/tty . skip [09:20:46] /dev/pts . skip [09:20:46] /dev/shm . skip [09:20:46] /mnt/ . skip [09:20:46] /mnt/ . skip [09:20:46] Configuring the container: [09:20:46] dns . fail [09:20:46] mtab . fail [09:20:46] Starting services: [09:20:46] SSH [:22] . fail [09:20:46] VNC [:5900] . fail [09:20:46]  

The text was updated successfully, but these errors were encountered:

Источник

Оцените статью
Adblock
detector