isontheline / pro.webssh.net

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

Alibaba Cloud : 2FA Support #162

Open jaychoubaby opened 3 years ago

jaychoubaby commented 3 years ago

公司上了阿里云跳板机,通过手机号接收验证码进行登录,希望可以支持一下,谢谢。

目前登录可以成功收到验证码,但是没有填写验证码的弹窗

The company got on the Alibaba Cloud springboard and received the verification code to log in through the mobile phone number. I hope to support it, thank you.

At present, you can successfully receive the verification code after logging in, but there is no pop-up window to fill in the verification code

isontheline commented 3 years ago

Should be related to #51

jaychoubaby commented 3 years ago

这是我录制的操作视频,可供参考: https://user-images.githubusercontent.com/26641387/103715556-e3132380-4ffb-11eb-947e-961265136bf3.MP4

isontheline commented 3 years ago

Thank you a lot for your video @jaychoubaby

I will fix 2FA support for your cloud provider as soon as possible.

Have a nice day ☀️

isontheline commented 3 years ago

Hello @jaychoubaby 👋

I'm working on 2FA issues.

Could you check the latest beta please? https://testflight.apple.com/join/QSrBK59z

Have a nice day ☀️

jaychoubaby commented 3 years ago

我不小心用国区的账号接受了邀请,结果无法下载,可否重新发一个邀请码给我,我用国外账号接受邀请测试。 IMG_0884

jaychoubaby commented 3 years ago

经测试 ,版本15.0.5依然无法使用验证码登录 1 2 IMG_0887

isontheline commented 3 years ago

Hello @jaychoubaby 👋

Thanks for your feedback 👍

I'm searching the root cause.

isontheline commented 2 years ago

Hello @jaychoubaby 👋

Does WebSSH 19.5 ( https://testflight.apple.com/join/QSrBK59z) solves the trouble?

jaychoubaby commented 2 years ago

你好@jaychoubaby 👋

WebSSH 19.5 ( https://testflight.apple.com/join/QSrBK59z ) 能解决问题吗?

still not working。

isontheline commented 2 years ago

@jaychoubaby Thank you for your feedback 🙏

I will try another fix

jaychoubaby commented 1 year ago

@jaychoubaby Thank you for your feedback 🙏

I will try another fix

"Hello, I would like to know the progress of this issue."

isontheline commented 1 year ago

@jaychoubaby I'm sorry I didn't have worked on it since.

I will replan-it

jaychoubaby commented 8 months ago

It has been two years, may I ask if this is still being resolved?

isontheline commented 8 months ago

I've not worked on it as I don't own an Alibaba Cloud account.

Could you share your verbose logs when the error happens?

In order to enable verbose logging you can follow the steps :

  1. iOS Settings
  2. WebSSH
  3. Settings
  4. Log Level > Verbose
  5. Restart WebSSH
  6. Reproduce your action
  7. Find the log files inside iOS > Files > WebSSH
jaychoubaby commented 8 months ago

[2024-02-24 02:55:48 +0000] [INFO] Thank you so much for using WebSSH 25.3.1278 on iOS 17.3.1 🙏 [2024-02-24 02:56:37 +0000] [WARN] User must check fingerprint because not know : ssh-rsa 2048 69:2b:cd:98:d4:d2:cd:70:3d:4e:30:e2:8f:0c:51:df [2024-02-24 02:56:41 +0000] [ERROR]

9.5.0.97 2 SSH-2.0-OpenSSH_8.9p1 ssh-userauth ssh-userauth publickey,password Authentication failed or partial success. (1) 1 keyboard-interactive This is likely a simple invalid login and/or password error, meaning your application did not send the correct login and/or password. Failed.

[2024-02-24 02:56:42 +0000] [ERROR] Error : 所提供的身份信息无效

jaychoubaby commented 8 months ago

I've not worked on it as I don't own an Alibaba Cloud account.

Could you share your verbose logs when the error happens?

In order to enable verbose logging you can follow the steps :

  1. iOS Settings

  2. WebSSH

  3. Settings

  4. Log Level > Verbose

  5. Restart WebSSH

  6. Reproduce your action

  7. Find the log files inside iOS > Files > WebSSH

If this can not be resolved through logging, I am willing to provide an account to help you

jaychoubaby commented 8 months ago

2024/02/24 10:55:48:272 [INFO] Thank you so much for using WebSSH 25.3.1278 on iOS 17.3.1 🙏 2024/02/24 10:55:48:273 [DEBUG] Launching Data Migration... 2024/02/24 10:55:48:273 [DEBUG] Checking if settings need to be migrated... 2024/02/24 10:55:48:277 [DEBUG] Data Migration Done! 2024/02/24 10:55:48:277 [DEBUG] Launch_APP_Count_25.3 : 2 2024/02/24 10:55:48:277 [DEBUG] Launch_APP_Count : 62 2024/02/24 10:55:48:277 [DEBUG] Launching Vacuum on the local database... 2024/02/24 10:55:48:278 [DEBUG] 0 objects have been vacuumed 2024/02/24 10:55:48:291 [VERBOSE] Performing vacuum on old deleted iCloud objects... 2024/02/24 10:55:48:359 [DEBUG] Device language : zh-Hans 2024/02/24 10:55:48:359 [DEBUG] Language bundle is not loaded. Will load this bundle : zh-Hans 2024/02/24 10:55:48:392 [VERBOSE] Will notify when setting 'WEBSSH_SETTING_CONNECTION_LIST_ROW_DETAILS' will change 2024/02/24 10:55:48:422 [DEBUG] WebSSH should be locked after delay (secs) : 60 2024/02/24 10:55:48:443 [DEBUG] Application did become active 2024/02/24 10:55:48:444 [DEBUG] No pin code set. WebSSH won't be locked. 2024/02/24 10:55:48:944 [DEBUG] Application will resign active 2024/02/24 10:55:49:288 [VERBOSE] Fetching from iCloud with a change token 2024/02/24 10:55:51:107 [DEBUG] Application did become active 2024/02/24 10:55:51:107 [DEBUG] Can't lock WebSSH because delay not elapsed : 2 < 60 2024/02/24 10:55:52:707 [VERBOSE] IAP already purchased (iCloud) : com.webssh.pro.unlimited 2024/02/24 10:55:57:118 [DEBUG] Application will resign active 2024/02/24 10:55:58:215 [VERBOSE] No objects to be vacuumed on iCloud. 2024/02/24 10:55:59:032 [DEBUG] Application did become active 2024/02/24 10:55:59:032 [DEBUG] Can't lock WebSSH because delay not elapsed : 1 < 60 2024/02/24 10:56:02:742 [DEBUG] Application will resign active 2024/02/24 10:56:02:948 [DEBUG] Application did become active 2024/02/24 10:56:02:948 [DEBUG] Can't lock WebSSH because delay not elapsed : 0 < 60 2024/02/24 10:56:04:291 [VERBOSE] Fetching from iCloud with a change token 2024/02/24 10:56:05:321 [DEBUG] Application will resign active 2024/02/24 10:56:06:940 [VERBOSE] iCloud data fetched with success. 2024/02/24 10:56:15:469 [VERBOSE] iCloud data fetched with success. 2024/02/24 10:56:15:709 [DEBUG] Application did become active 2024/02/24 10:56:15:709 [DEBUG] Can't lock WebSSH because delay not elapsed : 10 < 60 2024/02/24 10:56:18:027 [DEBUG] Application will resign active 2024/02/24 10:56:19:289 [VERBOSE] Fetching from iCloud with a change token 2024/02/24 10:56:24:813 [VERBOSE] iCloud data fetched with success. 2024/02/24 10:56:25:039 [DEBUG] Application did become active 2024/02/24 10:56:25:039 [DEBUG] Can't lock WebSSH because delay not elapsed : 7 < 60 2024/02/24 10:56:33:074 [VERBOSE] Saving connection... 2024/02/24 10:56:33:075 [VERBOSE] Saving (pushAllowed == 1) object 89720BEF-9633-4DEE-A14C-813D19A005A3 to local database 2024/02/24 10:56:34:291 [VERBOSE] Fetching from iCloud with a change token 2024/02/24 10:56:37:154 [VERBOSE] iCloud data fetched with success. 2024/02/24 10:56:37:426 [VERBOSE] Adding DNS Resolver Address 198.19.0.3 : IPv4 address 2024/02/24 10:56:37:565 [DEBUG] No custom SSH Config File will overwrite this connection settings 2024/02/24 10:56:37:565 [VERBOSE] Launching connection (SSH)... 2024/02/24 10:56:37:565 [VERBOSE] Resolving 'host-server.canpoint.cn'... 2024/02/24 10:56:37:581 [VERBOSE] Resolved address is : 198.18.28.141 2024/02/24 10:56:37:582 [DEBUG] Connecting to SSH... 2024/02/24 10:56:37:582 [VERBOSE] Launching connection with block... 2024/02/24 10:56:37:582 [VERBOSE] Won't dismiss prompt because no one is displayed. 2024/02/24 10:56:37:603 [DEBUG] IP Strategy is set to 'ipv6'. Does IPv6 is prefered over IPv4? => 1 2024/02/24 10:56:37:604 [DEBUG] No SOCKS Tunnel launched. SSH connection will be established without any SOCKS hostname. 2024/02/24 10:56:37:770 [DEBUG] Success iCloud save object : 89720BEF-9633-4DEE-A14C-813D19A005A3 2024/02/24 10:56:37:807 [DEBUG] Connected to : host-server.canpoint.cn (198.18.28.141) 2024/02/24 10:56:37:810 [WARN] User must check fingerprint because not know : ssh-rsa 2048 69:2b:cd:98:d4:d2:cd:70:3d:4e:30:e2:8f:0c:51:df 2024/02/24 10:56:40:351 [VERBOSE] Saving (pushAllowed == 1) object 611E33F2-83FB-4061-9A5B-66858542E186 to local database 2024/02/24 10:56:40:361 [DEBUG] IP Strategy is set to 'ipv6'. Does IPv6 is prefered over IPv4? => 1 2024/02/24 10:56:40:361 [DEBUG] No SOCKS Tunnel launched. SSH connection will be established without any SOCKS hostname. 2024/02/24 10:56:40:452 [DEBUG] Connected to : host-server.canpoint.cn (198.18.28.141) 2024/02/24 10:56:40:456 [DEBUG] Authentication using login/password 2024/02/24 10:56:41:115 [DEBUG] Authentication has failed 2024/02/24 10:56:41:117 [ERROR]

9.5.0.97 2 SSH-2.0-OpenSSH_8.9p1 ssh-userauth ssh-userauth publickey,password Authentication failed or partial success. (1) 1 keyboard-interactive This is likely a simple invalid login and/or password error, meaning your application did not send the correct login and/or password. Failed.

2024/02/24 10:56:41:218 [DEBUG] Dismissing prompt... 2024/02/24 10:56:42:849 [ERROR] Error : 所提供的身份信息无效 2024/02/24 10:56:43:078 [DEBUG] Success iCloud save object : 611E33F2-83FB-4061-9A5B-66858542E186 2024/02/24 10:56:49:292 [VERBOSE] Fetching from iCloud with a change token 2024/02/24 10:56:50:967 [DEBUG] iCloud Object "89720BEF-9633-4DEE-A14C-813D19A005A3" has been received of type : connection. Parsing it... 2024/02/24 10:56:50:968 [DEBUG] iCloud object 89720BEF-9633-4DEE-A14C-813D19A005A3 was already modified by this device so will not be updated on local database 2024/02/24 10:56:50:969 [DEBUG] iCloud Object "611E33F2-83FB-4061-9A5B-66858542E186" has been received of type : hostkeyfingerprint_v2. Parsing it... 2024/02/24 10:56:50:970 [DEBUG] iCloud object 611E33F2-83FB-4061-9A5B-66858542E186 was already modified by this device so will not be updated on local database 2024/02/24 10:56:50:970 [VERBOSE] iCloud data fetched with success. 2024/02/24 10:56:55:275 [DEBUG] Application will resign active 2024/02/24 11:15:12:704 [VERBOSE] Fetching from iCloud with a change token 2024/02/24 11:15:13:011 [DEBUG] Application did become active 2024/02/24 11:15:13:020 [DEBUG] No pin code set. WebSSH won't be locked. 2024/02/24 11:15:22:292 [VERBOSE] iCloud data fetched with success. 2024/02/24 11:15:27:703 [VERBOSE] Fetching from iCloud with a change token 2024/02/24 11:15:37:390 [VERBOSE] iCloud data fetched with success. 2024/02/24 11:15:42:704 [VERBOSE] Fetching from iCloud with a change token 2024/02/24 11:15:43:936 [VERBOSE] iCloud data fetched with success. 2024/02/24 11:15:47:469 [DEBUG] Application will resign active

isontheline commented 8 months ago

@jaychoubaby Could you confirm me that you have enabled "Force 2FA" inside your connection settings?

jaychoubaby commented 8 months ago

@jaychoubaby Could you confirm me that you have enabled "Force 2FA" inside your connection settings?

I am now open, here is the error log.

jaychoubaby commented 8 months ago

[2024-02-24 02:55:48 +0000] [INFO] Thank you so much for using WebSSH 25.3.1278 on iOS 17.3.1 🙏 [2024-02-24 02:56:37 +0000] [WARN] User must check fingerprint because not know : ssh-rsa 2048 69:2b:cd:98:d4:d2:cd:70:3d:4e:30:e2:8f:0c:51:df [2024-02-24 02:56:41 +0000] [ERROR]

9.5.0.97 2 SSH-2.0-OpenSSH_8.9p1 ssh-userauth ssh-userauth publickey,password Authentication failed or partial success. (1) 1 keyboard-interactive This is likely a simple invalid login and/or password error, meaning your application did not send the correct login and/or password. Failed.

[2024-02-24 02:56:42 +0000] [ERROR] Error : 所提供的身份信息无效 [2024-02-24 13:56:09 +0000] [INFO] Opening embedded browser on : https://webssh.net/support/?ts=1708782969 [2024-02-24 13:56:21 +0000] [INFO] Opening embedded browser on : https://webssh.net/documentation/changelog/25/?ts=1708782981 [2024-02-24 15:50:12 +0000] [INFO] Opening embedded browser on : http://webssh.net/documentation/help/SSH/terminal-settings/terminal-font-size/?ts=1708789812 [2024-02-24 15:50:35 +0000] [INFO] Opening embedded browser on : https://webssh.net/documentation/help/networking/port-knocking/?ts=1708789835 [2024-02-24 15:50:40 +0000] [ERROR] Want to continue with XML Challenge but was nil! [2024-02-24 15:50:40 +0000] [WARN] Unable to open a session channel [2024-02-24 15:50:40 +0000] [ERROR]

9.5.0.97 2 [USM] Peer 183.95.49.91:26256 socket closed Error reading channel response. 11 [USM] Peer 183.95.49.91:26256 socket closed -1

[2024-02-24 15:50:43 +0000] [ERROR] Error : 连接错误 [2024-02-24 15:50:43 +0000] [ERROR] Error : Connection_Established_But_Can_Not_Open_Session

jaychoubaby commented 8 months ago

image

isontheline commented 8 months ago

@jaychoubaby

If this can not be resolved through logging, I am willing to provide an account to help you

If you can create me a jailed account I would love that. You're right perhaps it will help me better to find the root cause.

If you would to do so you can switch to contact me privately on : team [AT} webssh (DOT] net

jaychoubaby commented 8 months ago

@jaychoubaby

If this can not be resolved through logging, I am willing to provide an account to help you

If you can create me a jailed account I would love that.

You're right perhaps it will help me better to find the root cause.

If you would to do so you can switch to contact me privately on : team [AT} webssh (DOT] net

I can not open a new account, I can only give you my own account, if you need to private mail to me, I will reply to you。 email:356666293@qq.com