staf621 / ki4a

Ki4a lets you tunnel your android's traffic over SSH in a very easy way.
Apache License 2.0
87 stars 52 forks source link

Can't connect... #19

Open vtpoet opened 6 years ago

vtpoet commented 6 years ago

Okay, edited. Correcting the typo didn't help. Below is a new log (I substituted "domain" for the actual name in a spate of paranoia):

[libsuperuser][C][SH%] START [libsuperuser][C][SH+] /data/data/com.staf621.ki4a/ki4a/bin/busybox killall -9 korkscrew;/data/data/com.staf621.ki4a/ki4a/bin/busybox killall -9 ssh;/data/data/com.staf621.ki4a/ki4a/bin/busybox killall pdnsd [libsuperuser][O][SH] killall: korkscrew: no process killed [libsuperuser][O][SH] killall: ssh: no process killed [libsuperuser][O][SH] killall: pdnsd: no process killed [libsuperuser][C][SH%] END Service received a request! toState=1, current_status=0 Ad loaded callback. Ad received callback. Asking for permission to use VPN Service received a request! toState=4, current_status=2 [libsuperuser][C][SH%] START [libsuperuser][C][SH+] /data/data/com.staf621.ki4a/ki4a/bin/pdnsd -c /data/data/com.staf621.ki4a/ki4a/pdnsd.conf -d; echo $? [libsuperuser][O][SH-] 0 [libsuperuser][C][SH%] END Util.startVPN Starting VPN tunnel [libsuperuser][C][SH%] START Starting new wait4connection Starting Protecting SSH fd Let's get sshfd [libsuperuser][C][SH+] /data/data/com.staf621.ki4a/ki4a/bin/ssh "domain" -p 8000 -l -NT -g -D 7777 -L 127.0.0.1:8163:8.8.8.8:53 -R 8000:"domain":8000 -i "/data/data/com.staf621.ki4a/ki4a/id_rsa" -C -o "ProxyCommand /data/data/com.staf621.ki4a/ki4a/bin/korkscrew --ancillaryfile /data/data/com.staf621.ki4a/ki4a/sshfd_file --directconnection --desthost %h --destport %p" -o "KeepAlive yes" -o "ServerAliveInterval 15" -o "StrictHostKeyChecking=no" -o "GlobalKnownHostsFile=/dev/null"; echo $? [libsuperuser][O][SH] Pseudo-terminal will not be allocated because stdin is not a terminal. [libsuperuser][O][SH] Could not create directory '/data/local/home/u0_a97/.ssh'. Got SSHfd [190] Configure Routing all traffic [libsuperuser][C][SH%] START [libsuperuser][C][SH+] /data/data/com.staf621.ki4a/ki4a/bin/tun2socks --netif-ipaddr 26.26.26.2 --netif-netmask 255.255.255.0 --socks-server-addr 127.0.0.1:7777 --tunmtu 1500 --dnsgw 26.26.26.1:8153 --pid /data/data/com.staf621.ki4a/ki4a/tun2socks.pid; echo $? [libsuperuser][O][SH-] 0 [libsuperuser][C][SH%] END Let's send FD to tun2socks Done tun2socks RUN [libsuperuser][O][SH] Failed to add the host to the list of known hosts (/data/local/home/u0_a97/.ssh/known_hosts). Ad loaded callback. Ad loaded callback. Wait4connection: verifying connectivity... Couldn't connect java.net.UnknownHostException: Unable to resolve host "google.com": No address associated with hostname [libsuperuser][O][SH] Permission denied (publickey). [libsuperuser][O][SH-] 255 [libsuperuser][C][SH%] END Wait4connection: verifying connectivity... Couldn't connect java.net.UnknownHostException: Unable to resolve host "google.com": No address associated with hostname Disconnected [libsuperuser][C][SH%] START [libsuperuser][C][SH+] /data/data/com.staf621.ki4a/ki4a/bin/busybox killall -9 korkscrew;/data/data/com.staf621.ki4a/ki4a/bin/busybox killall -9 ssh;/data/data/com.staf621.ki4a/ki4a/bin/busybox killall -9 sshpass;/data/data/com.staf621.ki4a/ki4a/bin/busybox killall pdnsd [libsuperuser][O][SH] killall: korkscrew: no process killed ToStatus = 0 [libsuperuser][O][SH] killall: ssh: no process killed [libsuperuser][O][SH] killall: sshpass: no process killed [libsuperuser][C][SH%] END Util.stopVPN Stopping VPN tunnel Closing [libsuperuser][C][SH%] START [libsuperuser][C][SH+] /data/data/com.staf621.ki4a/ki4a/bin/busybox killall -9 tun2socks [libsuperuser][C][SH%] END Closing Ad loaded callback. Ad received callback. Ad loaded callback. Ad received callback.

rod2k commented 5 years ago

I'm having the same issue using an Amazon AWS instance and trying to connect using OpenSSH Key format, it works fine using other hosts with normal user/password auth