isontheline / pro.webssh.net

iOS / iPadOS / macOS SSH Client
https://apps.apple.com/us/app/id497714887
MIT License
316 stars 46 forks source link

Bad DNS servers used since 24.6+ #1030

Closed MrFly72 closed 10 months ago

MrFly72 commented 10 months ago

Bug description

Connections I have used for ages (authorization by key+password) do not connect anymore.

Screenshots

image

MrFly72 commented 10 months ago

Oh, and rolling back to 24.5 lets the same cnnections work again

bbjunkie commented 10 months ago

Same here. Also noticed that pings fail to all hosts too.

isontheline commented 10 months ago

@MrFly72 Could be a collateral effect of this fix : #1028

Could you extract the verbose logs please?

@bbjunkie Could you put screenshots about the ping issue?

isontheline commented 10 months ago

@MrFly72 It's not 25.x, do you mean 24.5?

MrFly72 commented 10 months ago

Yes you are right.

isontheline commented 10 months ago

@MrFly72 Please share any data you may have (verbose logs of WebSSH, your server version and custom settings)

MrFly72 commented 10 months ago

Will send later. First view in the log. You seem to use Google dns instead of mine. Very bad for local addresses. Google does bot know what *.fritz.box is as it is a local DNs Scope

MrFly72 commented 10 months ago
2024/01/10 07:06:13:198 [INFO] Thank you so much for using WebSSH 24.7.1239 on iOS
2024/01/10 07:06:13:198 [INFO] WebSSH Setting Log Level : VERBOSE
2024/01/10 07:06:13:199 [INFO] Launching Data Migration...
2024/01/10 07:06:13:199 [INFO] Checking if settings need to be migrated...
2024/01/10 07:06:13:203 [INFO] Data Migration Done!
2024/01/10 07:06:13:203 [DEBUG] Launch_APP_Count_24.7 : 3
2024/01/10 07:06:13:203 [DEBUG] Launch_APP_Count : 214
2024/01/10 07:06:13:203 [DEBUG] Launching Vacuum on the local database...
2024/01/10 07:06:13:204 [DEBUG] 0 objects have been vacuumed
2024/01/10 07:06:13:212 [VERBOSE] Performing vacuum on old deleted iCloud objects...
2024/01/10 07:06:13:230 [DEBUG] Device language : de
2024/01/10 07:06:13:230 [INFO] Language bundle is not loaded. Will load this bundle : de
2024/01/10 07:06:13:285 [VERBOSE] Will notify when setting 'WEBSSH_SETTING_CONNECTION_LIST_ROW_DETAILS' will change
2024/01/10 07:06:13:307 [INFO] WebSSH should be locked after delay (secs) : 60
2024/01/10 07:06:13:658 [DEBUG] Application did become active
2024/01/10 07:06:13:662 [DEBUG] No pin code set. WebSSH won't be locked.
2024/01/10 07:06:13:765 [DEBUG] Application will resign active
2024/01/10 07:06:13:849 [VERBOSE] No objects to be vacuumed on iCloud.
2024/01/10 07:06:14:210 [DEBUG] Fetching from iCloud with a change token
2024/01/10 07:06:14:288 [VERBOSE] Updating host statuses...
2024/01/10 07:06:14:308 [VERBOSE] Host raspi4.fritz.box:22 changed. Is up : 1
2024/01/10 07:06:14:314 [VERBOSE] Host bbbbb.aaaaaaaa.de:24472 changed. Is up : 1
2024/01/10 07:06:14:492 [DEBUG] iCloud data fetched with success.
2024/01/10 07:06:15:330 [VERBOSE] Host raspi4b.fritz.box:22 changed. Is up : 0
2024/01/10 07:06:15:371 [VERBOSE] Host raspizero2.fritz.box:22 changed. Is up : 1
2024/01/10 07:06:16:385 [VERBOSE] Host synologynas.fritz.box:22 changed. Is up : 0
2024/01/10 07:06:16:434 [VERBOSE] Host jjjjjjjjjjj.myfritz.net:2404 changed. Is up : 1
2024/01/10 07:06:16:434 [VERBOSE] Updating of host statuses done.
2024/01/10 07:06:16:435 [VERBOSE] Need to refresh hosts list because at least one host status have been updated
2024/01/10 07:06:16:435 [VERBOSE] Fresh requested for connection list...
2024/01/10 07:06:16:595 [DEBUG] Application did become active
2024/01/10 07:06:16:595 [DEBUG] Can't lock WebSSH because delay not elapsed : 2 < 60
2024/01/10 07:06:17:594 [DEBUG] A custom SSH Config File will overwrite this connection settings : (
    "_keyboardaccessoryview"
)
2024/01/10 07:06:17:594 [VERBOSE] Want to connect with a Private Key
2024/01/10 07:06:17:599 [VERBOSE] Private Key is encrypted because user have set a passphrase inside WebSSH.
2024/01/10 07:06:17:599 [DEBUG] Private Key is encrypted : 1
2024/01/10 07:06:17:600 [VERBOSE] Load Private Key in PuTTY Format
2024/01/10 07:06:17:603 [VERBOSE] Launching connection (SSH)...
2024/01/10 07:06:17:604 [VERBOSE] Connecting to SSH...
2024/01/10 07:06:17:604 [VERBOSE] Launching connection with block...
2024/01/10 07:06:17:604 [VERBOSE] Won't dismiss prompt because no one is displayed.
2024/01/10 07:06:17:619 [INFO] IP Strategy is set to 'ipv4'. Does IPv6 is prefered over IPv4? => 0
2024/01/10 07:06:17:620 [DEBUG] No SOCKS Tunnel launched. SSH connection will be established without any SOCKS hostname.
2024/01/10 07:06:17:640 [VERBOSE] <EngineLog>
  <Connect_Ssh>
    <EngineVersion>9.5.0.97</EngineVersion>
    <EngineStatus>2</EngineStatus>
    <connectInner>
      <hostname>raspi4.fritz.box</hostname>
      <port>22</port>
      <sshConnect>
        <connectSocket_v2>
          <connect_domain>
            <ckDnsResolveDomainIPv4_n>
              <dnsHostsFileLookup>
                <domainName>raspi4.fritz.box</domainName>
              </dnsHostsFileLookup>
              <namservers>
                <ip>8.8.8.8</ip>
                <ip>1.1.1.1</ip>
              </namservers>
              <error>No valid DNS answer..</error>
            </ckDnsResolveDomainIPv4_n>
          </connect_domain>
        </connectSocket_v2>
        <error>Failed to establish initial TCP/IP connection</error>
        <hostname>raspi4.fritz.box</hostname>
        <port>22</port>
      </sshConnect>
    </connectInner>
    <error>Failed.</error>
  </Connect_Ssh>
</EngineLog>
2024/01/10 07:06:17:740 [DEBUG] Dismissing prompt...
2024/01/10 07:06:17:948 [VERBOSE] Updating host statuses...
2024/01/10 07:06:20:016 [VERBOSE] Error : Es kann keine Verbindung zu raspi4.fritz.box hergestellt werden
2024/01/10 07:06:20:043 [VERBOSE] Updating of host statuses done.
2024/01/10 07:06:23:899 [VERBOSE] IAP already purchased (device) : com.webssh.pro.unlimited
2024/01/10 07:06:29:212 [DEBUG] Fetching from iCloud with a change token
2024/01/10 07:06:29:512 [DEBUG] iCloud data fetched with success.
2024/01/10 07:06:32:282 [DEBUG] Application will resign active
MrFly72 commented 10 months ago

Sorry, hope it is readable. iPad does not give a lot of options to format in the GitHub app

isontheline commented 10 months ago

@MrFly72 I will provide a fix asap.

Google DNS shouldn't be used as default. I'm searching why it's now by default.

bbjunkie commented 10 months ago

@MrFly72 Could be a collateral effect of this fix : #1028

Could you extract the verbose logs please?

@bbjunkie Could you put screenshots about the ping issue?

image

isontheline commented 10 months ago

Thanks @bbjunkie

Seems not related to this issue. Could you extract these information please :

  1. Launch mashREPL
  2. What's the output of : ifconfig
isontheline commented 10 months ago

@MrFly72 Please try WebSSH 24.7.1240 : https://testflight.apple.com/join/QSrBK59z

I have fixed the default DNS resolver trouble. Your defined DNS servers inside your OS will be used instead.

MrFly72 commented 10 months ago

I can connect again. The big change you wanted to do is to present the server keys again, right? Because that's the difference that all keys are presented once again.

isontheline commented 10 months ago

Yes @MrFly72 I have added a warning about it to support page :

image

I now use different host fingerprint keys when available

I will add another on the App Store.

Sorry for the trouble

ash34 commented 10 months ago

This is fixed for me now with version 24.7.1240

isontheline commented 10 months ago

@ash34 Many thanks for your feedback 🙏

MrFly72 commented 10 months ago

Sorry for the trouble

No worries. That's what beta testing (TestFlight) is for. Glad that we could find it before a release! Thanks for reacting that fast! Awesome support!