treecosia_44893
treecosia_44893
TTermux
Created by treecosia_44893 on 8/23/2024 in #support
ssh connection: ran 'sshd' yet 'port 22: Connection refused'
Specs - Hardware: Software - Galaxy Tab A7 Lite (model name: SM-T220): Android 14 - Raspberry Pi 5 (8GB): Raspberry Pi OS Msg Hello, I was trying to use ssh with these 2 devices: here's what happened: - Android device (host):
pkill sshd
sshd
pkill sshd
sshd
~ $ cat $PREFIX/etc/ssh/sshd_config
PrintMotd yes
PasswordAuthentication yes
Subsystem sftp /data/data/com.termux/files/usr/libexec/sftp-server
~ $ cat $PREFIX/etc/ssh/sshd_config
PrintMotd yes
PasswordAuthentication yes
Subsystem sftp /data/data/com.termux/files/usr/libexec/sftp-server
- Raspberry Pi (client)
alinuxchap@libertus-desktop:~ $ ssh [email protected]
ssh: connect to host 192.168.1.76 port 22: Connection refused
alinuxchap@libertus-desktop:~ $ ssh -vvvvv [email protected]
OpenSSH_9.2p1 Debian-2+deb12u3, OpenSSL 3.0.13 30 Jan 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.1.76 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/alinuxchap/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/alinuxchap/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.1.76 [192.168.1.76] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address 192.168.1.76 port 22: Connection refused
ssh: connect to host 192.168.1.76 port 22: Connection refused
alinuxchap@libertus-desktop:~ $ ssh [email protected]
ssh: connect to host 192.168.1.76 port 22: Connection refused
alinuxchap@libertus-desktop:~ $ ssh -vvvvv [email protected]
OpenSSH_9.2p1 Debian-2+deb12u3, OpenSSL 3.0.13 30 Jan 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.1.76 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/alinuxchap/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/alinuxchap/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.1.76 [192.168.1.76] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address 192.168.1.76 port 22: Connection refused
ssh: connect to host 192.168.1.76 port 22: Connection refused
What I've tried - both devices connected to same WiFi network (I checked the ip address assigned to the Android device by the router in its Wifi Settings); I also checked the router 'dashboard' (the settings you're able to change just by accessing its local ip address) - in Termux - execute whoami and passwd beforehand - see if anything came up in logcat -s 'sshd:*' while connecting (but nothing was outputted for some reason)
5 replies
TTermux
Created by treecosia_44893 on 8/10/2024 in #support
local server that plays videos accessible offline
Hello, I need to play a series of videos one after the other inside a folder (the playback just needs to be visible on a local http server, so that there's no way to play/pause/scrub): any ideas? Here's what I tried: - vlc -vvv "~/storage/shared/Download/My Project.mp4" --sout="#standard{access=http,mux=asf,url=192.164.0.64:8080}" (tried modifying it from https://forum.videolan.org/viewtopic.php?t=70207, but when I try and connect to that url on the same device that's meant to be hosting it on firefox it said "Unable to connect": I can still access the server generated from apachectl on Firefox though...)
4 replies
TTermux
Created by treecosia_44893 on 5/24/2024 in #support
adb pair XXX.XXX...: error: protocol fault (couldn't read status message): Success
I can't seem to get adb to work: I've tried
adb kill-server
adb start-server
adb kill-server
adb start-server
And
pkg update
pkg upgrade
pkg update
pkg upgrade
But it's still having the same issue: any ideas?
17 replies