locked
Xamarin - iOS - VS 2019 - cant connect to mac/ios RRS feed

  • Question

  • Hello, I'm using Xamarin (Android, iOS, UWP). I'm using VS 2019 on windows 10 (Latest version)

    The Android and UWP app are done and working well.

    I'm starting the mac/iOS version (first time doing this with mac/iOS).
    I borrowed my daughter old mac 10.6.8 (Snow leopard, core 2 ;) ), I installed xcode on it, open the remote connection.

    I can successfully do "ssh user@machine" from my windows machine. From vs 2019 (from windows) I do "pair a mac" > Add mac > enter ip  > At first I got an error because the folder %LOCALAPPDATA%\Xamarin\MonoTouch didn't exist so I created it manually after some web research > then it asked for the mac login+ password > then I get the following error (see image).
    I can't figure this one out.
    I search for 5 to 6h on the web, try so many things, but it still doesn't work. 
    Any idea on ho to fix this so I can compile for iOS?

    Thank you for your help!

    

    Here is the IDE log:

    Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
    Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
    Xamarin|Information|0|Xamarin - 16.5.000.533-d16-5+9152e1b
    Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
    Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
    Xamarin.VisualStudio.Android.XamarinAndroidPackage|Warning|0|Initializing Xamarin.VisualStudio.Android.XamarinAndroidPackage
    Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
    Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
    Xamarin.VisualStudio.IOS.Messaging.LocalMessagingInitializer|Information|0|Connecting to Local Broker...
    Xamarin.VisualStudio.IOS.XamarinIOSPackage|Warning|0|Initializing Xamarin.VisualStudio.IOS.XamarinIOSPackage.
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing AndroidStarted event
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
    System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory|Error|0|An error occurred while connecting via TCP to the endpoint address 127.0.0.1 and port 56818, to establish an MQTT connection
    System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.0.0.1:56818
       at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
       at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
       at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
       at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
    System.Net.Mqtt.Sdk.MqttClientImpl|Error|0|System.Net.Mqtt.MqttException: An error occurred while connecting via TCP to the endpoint address 127.0.0.1 and port 56818, to establish an MQTT connection ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:56818
       at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
       at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
       at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
       at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
       --- End of inner exception stack trace ---
       at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Net.Mqtt.Sdk.PacketChannelFactory.<CreateAsync>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Net.Mqtt.Sdk.MqttClientImpl.<InitializeChannelAsync>d__39.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Net.Mqtt.Sdk.MqttClientImpl.<ConnectAsync>d__29.MoveNext()
    Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Checking Broker 16.5.000.533 installation...
    Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Starting Broker 16.5.000.533 in port 56818...
    Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Broker 16.5.000.533 started successfully
    Xamarin.VisualStudio.IOS.Messaging.LocalMessagingInitializer|Information|0|Starting IDB Local Agent...
    Xamarin.Messaging.Ssh.AgentCommands|Information|0|Checking Agent IDB.Local 16.5.000.533 installation...
    Xamarin.Messaging.Ssh.MessagingService|Information|0|Starting Agent IDB.Local 16.5.000.533...
    Xamarin.Messaging.Ssh.AgentCommands|Information|0|Starting Agent IDB.Local 16.5.000.533 in port 56818...
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
    Xamarin.Messaging.Ssh.AgentCommands|Information|0|Agent IDB.Local 16.5.000.533 started successfully
    Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent IDB.Local 16.5.000.533 is running
    Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent IDBLocal 16.5.000.533 is running
    Xamarin.HotReload|Information|0|2020-05-17 14:07:49.2 Hot Reload IDE Extension Loaded
    Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: verify android sdk installed
    Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: removing android sdk errors
    Xamarin.VisualStudio.Android.Setup.AutoSdk|Information|0|androidsdksetup: AutoSdk tries to resolve dependencies: platforms/android-28, build-tools/28.0.3@28.0.3, platform-tools@28.0.0, tools@26.1.1, emulator, build-tools/29.0.2@29.0.2
    Xamarin.VisualStudio.Android.Setup.AutoSdk|Warning|0|androidsdksetup: AutoSdk cannot resolve dependencies: platform-tools@28.0.0
    Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify error: 
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on MacBook de Jacqueline Thomas (192.168.1.157)
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'MacBook de Jacqueline Thomas'...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking SSH configuration...
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'ssh-keygen -b 2048 -t rsa -m PEM -f "/Users/jacquelinethomas/Library/Caches/Xamarin/XMA/Keys/e21b1104-14be-4d74-8bc0-6c2fad3aa53d" -q -N "34ae0bc8-5c6b-4a80-8a04-0fa552d8e98f"': ExitStatus = 1
    Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|ssh-keygen: illegal option -- m
    usage: ssh-keygen [options]
    Options:
      -a trials   Number of trials for screening DH-GEX moduli.
      -B          Show bubblebabble digest of key file.
      -b bits     Number of bits in the key to create.
      -C comment  Provide new comment.
      -c          Change comment in private and public key files.
      -e          Convert OpenSSH to RFC 4716 key file.
      -F hostname Find hostname in known hosts file.
      -f filename Filename of the key file.
      -G file     Generate candidates for DH-GEX moduli.
      -g          Use generic DNS resource record format.
      -H          Hash names in known_hosts file.
      -i          Convert RFC 4716 to OpenSSH key file.
      -l          Show fingerprint of key file.
      -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
      -N phrase   Provide new passphrase.
      -P phrase   Provide old passphrase.
      -p          Change passphrase of private key file.
      -q          Quiet.
      -R hostname Remove host from known_hosts file.
      -r hostname Print DNS resource record.
      -S start    Start point (hex) for generating DH-GEX moduli.
      -T file     Screen candidates for DH-GEX moduli.
      -t type     Specify type of key to create.
      -v          Verbose.
      -W gen      Generator to use for generating DH-GEX moduli.
      -y          Read private key file and print public key.
    
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'MacBook de Jacqueline Thomas'...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to DisconnectingState on MacBook de Jacqueline Thomas (192.168.1.157)
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from MacBook de Jacqueline Thomas...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from MacBook de Jacqueline Thomas...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectingState to DisconnectedState on MacBook de Jacqueline Thomas (192.168.1.157)
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|The connection to 'MacBook de Jacqueline Thomas' has been finished
    Xamarin.Messaging.Integration.State.ServerStateContext|Error|0|An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: ssh-keygen: illegal option -- m
    usage: ssh-keygen [options]
    Options:
      -a trials   Number of trials for screening DH-GEX moduli.
      -B          Show bubblebabble digest of key file.
      -b bits     Number of bits in the key to create.
      -C comment  Provide new comment.
      -c          Change comment in private and public key files.
      -e          Convert OpenSSH to RFC 4716 key file.
      -F hostname Find hostname in known hosts file.
      -f filename Filename of the key file.
      -G file     Generate candidates for DH-GEX moduli.
      -g          Use generic DNS resource record format.
      -H          Hash names in known_hosts file.
      -i          Convert RFC 4716 to OpenSSH key file.
      -l          Show fingerprint of key file.
      -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
      -N phrase   Provide new passphrase.
      -P phrase   Provide old passphrase.
      -p          Change passphrase of private key file.
      -q          Quiet.
      -R hostname Remove host from known_hosts file.
      -r hostname Print DNS resource record.
      -S start    Start point (hex) for generating DH-GEX moduli.
      -T file     Screen candidates for DH-GEX moduli.
      -t type     Specify type of key to create.
      -v          Verbose.
      -W gen      Generator to use for generating DH-GEX moduli.
      -y          Read private key file and print public key.
    
    Xamarin.Messaging.Ssh.Exceptions.SshKeysGenerationException: An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: ssh-keygen: illegal option -- m
    usage: ssh-keygen [options]
    Options:
      -a trials   Number of trials for screening DH-GEX moduli.
      -B          Show bubblebabble digest of key file.
      -b bits     Number of bits in the key to create.
      -C comment  Provide new comment.
      -c          Change comment in private and public key files.
      -e          Convert OpenSSH to RFC 4716 key file.
      -F hostname Find hostname in known hosts file.
      -f filename Filename of the key file.
      -G file     Generate candidates for DH-GEX moduli.
      -g          Use generic DNS resource record format.
      -H          Hash names in known_hosts file.
      -i          Convert RFC 4716 to OpenSSH key file.
      -l          Show fingerprint of key file.
      -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
      -N phrase   Provide new passphrase.
      -P phrase   Provide old passphrase.
      -p          Change passphrase of private key file.
      -q          Quiet.
      -R hostname Remove host from known_hosts file.
      -r hostname Print DNS resource record.
      -S start    Start point (hex) for generating DH-GEX moduli.
      -T file     Screen candidates for DH-GEX moduli.
      -t type     Specify type of key to create.
      -v          Verbose.
      -W gen      Generator to use for generating DH-GEX moduli.
      -y          Read private key file and print public key.
    
       at Xamarin.Messaging.Ssh.SshCommands.<GenerateSshKeysAsync>d__32.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Ssh\SshCommands.cs:line 399
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.Messaging.Ssh.SshKeysGenerator.<CheckSshKeysAsync>d__4.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Ssh\SshKeysGenerator.cs:line 38
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.Messaging.Integration.State.ConfiguringState.<ConfigureSshKeysAsync>d__16.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Integration\State\ConfiguringState.cs:line 225
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
       at Xamarin.Messaging.Integration.State.ConfiguringState.<CheckHostConfigurationAsync>d__15.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Integration\State\ConfiguringState.cs:line 151
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on MacBook de Jacqueline Thomas (192.168.1.157)
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'MacBook de Jacqueline Thomas'...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking SSH configuration...
    Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'ssh-keygen -b 2048 -t rsa -m PEM -f "/Users/jacquelinethomas/Library/Caches/Xamarin/XMA/Keys/9133f0f6-b39d-477e-a773-c91cebd86a9b" -q -N "34ae0bc8-5c6b-4a80-8a04-0fa552d8e98f"': ExitStatus = 1
    Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|ssh-keygen: illegal option -- m
    usage: ssh-keygen [options]
    Options:
      -a trials   Number of trials for screening DH-GEX moduli.
      -B          Show bubblebabble digest of key file.
      -b bits     Number of bits in the key to create.
      -C comment  Provide new comment.
      -c          Change comment in private and public key files.
      -e          Convert OpenSSH to RFC 4716 key file.
      -F hostname Find hostname in known hosts file.
      -f filename Filename of the key file.
      -G file     Generate candidates for DH-GEX moduli.
      -g          Use generic DNS resource record format.
      -H          Hash names in known_hosts file.
      -i          Convert RFC 4716 to OpenSSH key file.
      -l          Show fingerprint of key file.
      -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
      -N phrase   Provide new passphrase.
      -P phrase   Provide old passphrase.
      -p          Change passphrase of private key file.
      -q          Quiet.
      -R hostname Remove host from known_hosts file.
      -r hostname Print DNS resource record.
      -S start    Start point (hex) for generating DH-GEX moduli.
      -T file     Screen candidates for DH-GEX moduli.
      -t type     Specify type of key to create.
      -v          Verbose.
      -W gen      Generator to use for generating DH-GEX moduli.
      -y          Read private key file and print public key.
    
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'MacBook de Jacqueline Thomas'...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to DisconnectingState on MacBook de Jacqueline Thomas (192.168.1.157)
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from MacBook de Jacqueline Thomas...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from MacBook de Jacqueline Thomas...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectingState to DisconnectedState on MacBook de Jacqueline Thomas (192.168.1.157)
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|The connection to 'MacBook de Jacqueline Thomas' has been finished
    Xamarin.Messaging.Integration.State.ServerStateContext|Error|0|An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: ssh-keygen: illegal option -- m
    usage: ssh-keygen [options]
    Options:
      -a trials   Number of trials for screening DH-GEX moduli.
      -B          Show bubblebabble digest of key file.
      -b bits     Number of bits in the key to create.
      -C comment  Provide new comment.
      -c          Change comment in private and public key files.
      -e          Convert OpenSSH to RFC 4716 key file.
      -F hostname Find hostname in known hosts file.
      -f filename Filename of the key file.
      -G file     Generate candidates for DH-GEX moduli.
      -g          Use generic DNS resource record format.
      -H          Hash names in known_hosts file.
      -i          Convert RFC 4716 to OpenSSH key file.
      -l          Show fingerprint of key file.
      -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
      -N phrase   Provide new passphrase.
      -P phrase   Provide old passphrase.
      -p          Change passphrase of private key file.
      -q          Quiet.
      -R hostname Remove host from known_hosts file.
      -r hostname Print DNS resource record.
      -S start    Start point (hex) for generating DH-GEX moduli.
      -T file     Screen candidates for DH-GEX moduli.
      -t type     Specify type of key to create.
      -v          Verbose.
      -W gen      Generator to use for generating DH-GEX moduli.
      -y          Read private key file and print public key.
    
    Xamarin.Messaging.Ssh.Exceptions.SshKeysGenerationException: An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: ssh-keygen: illegal option -- m
    usage: ssh-keygen [options]
    Options:
      -a trials   Number of trials for screening DH-GEX moduli.
      -B          Show bubblebabble digest of key file.
      -b bits     Number of bits in the key to create.
      -C comment  Provide new comment.
      -c          Change comment in private and public key files.
      -e          Convert OpenSSH to RFC 4716 key file.
      -F hostname Find hostname in known hosts file.
      -f filename Filename of the key file.
      -G file     Generate candidates for DH-GEX moduli.
      -g          Use generic DNS resource record format.
      -H          Hash names in known_hosts file.
      -i          Convert RFC 4716 to OpenSSH key file.
      -l          Show fingerprint of key file.
      -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
      -N phrase   Provide new passphrase.
      -P phrase   Provide old passphrase.
      -p          Change passphrase of private key file.
      -q          Quiet.
      -R hostname Remove host from known_hosts file.
      -r hostname Print DNS resource record.
      -S start    Start point (hex) for generating DH-GEX moduli.
      -T file     Screen candidates for DH-GEX moduli.
      -t type     Specify type of key to create.
      -v          Verbose.
      -W gen      Generator to use for generating DH-GEX moduli.
      -y          Read private key file and print public key.
    
       at Xamarin.Messaging.Ssh.SshCommands.<GenerateSshKeysAsync>d__32.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Ssh\SshCommands.cs:line 399
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.Messaging.Ssh.SshKeysGenerator.<CheckSshKeysAsync>d__4.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Ssh\SshKeysGenerator.cs:line 38
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.Messaging.Integration.State.ConfiguringState.<ConfigureSshKeysAsync>d__16.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Integration\State\ConfiguringState.cs:line 225
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
       at Xamarin.Messaging.Integration.State.ConfiguringState.<CheckHostConfigurationAsync>d__15.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Integration\State\ConfiguringState.cs:line 151
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on MacBook de Jacqueline Thomas (192.168.1.157)
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'MacBook de Jacqueline Thomas'...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking SSH configuration...
    Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'ssh-keygen -b 2048 -t rsa -m PEM -f "/Users/jacquelinethomas/Library/Caches/Xamarin/XMA/Keys/bd859e54-a862-41a6-a617-d7c759a3bf27" -q -N "34ae0bc8-5c6b-4a80-8a04-0fa552d8e98f"': ExitStatus = 1
    Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|ssh-keygen: illegal option -- m
    usage: ssh-keygen [options]
    Options:
      -a trials   Number of trials for screening DH-GEX moduli.
      -B          Show bubblebabble digest of key file.
      -b bits     Number of bits in the key to create.
      -C comment  Provide new comment.
      -c          Change comment in private and public key files.
      -e          Convert OpenSSH to RFC 4716 key file.
      -F hostname Find hostname in known hosts file.
      -f filename Filename of the key file.
      -G file     Generate candidates for DH-GEX moduli.
      -g          Use generic DNS resource record format.
      -H          Hash names in known_hosts file.
      -i          Convert RFC 4716 to OpenSSH key file.
      -l          Show fingerprint of key file.
      -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
      -N phrase   Provide new passphrase.
      -P phrase   Provide old passphrase.
      -p          Change passphrase of private key file.
      -q          Quiet.
      -R hostname Remove host from known_hosts file.
      -r hostname Print DNS resource record.
      -S start    Start point (hex) for generating DH-GEX moduli.
      -T file     Screen candidates for DH-GEX moduli.
      -t type     Specify type of key to create.
      -v          Verbose.
      -W gen      Generator to use for generating DH-GEX moduli.
      -y          Read private key file and print public key.
    
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'MacBook de Jacqueline Thomas'...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to DisconnectingState on MacBook de Jacqueline Thomas (192.168.1.157)
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from MacBook de Jacqueline Thomas...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from MacBook de Jacqueline Thomas...
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectingState to DisconnectedState on MacBook de Jacqueline Thomas (192.168.1.157)
    Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|The connection to 'MacBook de Jacqueline Thomas' has been finished
    Xamarin.Messaging.Integration.State.ServerStateContext|Error|0|An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: ssh-keygen: illegal option -- m
    usage: ssh-keygen [options]
    Options:
      -a trials   Number of trials for screening DH-GEX moduli.
      -B          Show bubblebabble digest of key file.
      -b bits     Number of bits in the key to create.
      -C comment  Provide new comment.
      -c          Change comment in private and public key files.
      -e          Convert OpenSSH to RFC 4716 key file.
      -F hostname Find hostname in known hosts file.
      -f filename Filename of the key file.
      -G file     Generate candidates for DH-GEX moduli.
      -g          Use generic DNS resource record format.
      -H          Hash names in known_hosts file.
      -i          Convert RFC 4716 to OpenSSH key file.
      -l          Show fingerprint of key file.
      -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
      -N phrase   Provide new passphrase.
      -P phrase   Provide old passphrase.
      -p          Change passphrase of private key file.
      -q          Quiet.
      -R hostname Remove host from known_hosts file.
      -r hostname Print DNS resource record.
      -S start    Start point (hex) for generating DH-GEX moduli.
      -T file     Screen candidates for DH-GEX moduli.
      -t type     Specify type of key to create.
      -v          Verbose.
      -W gen      Generator to use for generating DH-GEX moduli.
      -y          Read private key file and print public key.
    
    Xamarin.Messaging.Ssh.Exceptions.SshKeysGenerationException: An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: ssh-keygen: illegal option -- m
    usage: ssh-keygen [options]
    Options:
      -a trials   Number of trials for screening DH-GEX moduli.
      -B          Show bubblebabble digest of key file.
      -b bits     Number of bits in the key to create.
      -C comment  Provide new comment.
      -c          Change comment in private and public key files.
      -e          Convert OpenSSH to RFC 4716 key file.
      -F hostname Find hostname in known hosts file.
      -f filename Filename of the key file.
      -G file     Generate candidates for DH-GEX moduli.
      -g          Use generic DNS resource record format.
      -H          Hash names in known_hosts file.
      -i          Convert RFC 4716 to OpenSSH key file.
      -l          Show fingerprint of key file.
      -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
      -N phrase   Provide new passphrase.
      -P phrase   Provide old passphrase.
      -p          Change passphrase of private key file.
      -q          Quiet.
      -R hostname Remove host from known_hosts file.
      -r hostname Print DNS resource record.
      -S start    Start point (hex) for generating DH-GEX moduli.
      -T file     Screen candidates for DH-GEX moduli.
      -t type     Specify type of key to create.
      -v          Verbose.
      -W gen      Generator to use for generating DH-GEX moduli.
      -y          Read private key file and print public key.
    
       at Xamarin.Messaging.Ssh.SshCommands.<GenerateSshKeysAsync>d__32.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Ssh\SshCommands.cs:line 399
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.Messaging.Ssh.SshKeysGenerator.<CheckSshKeysAsync>d__4.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Ssh\SshKeysGenerator.cs:line 38
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.Messaging.Integration.State.ConfiguringState.<ConfigureSshKeysAsync>d__16.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Integration\State\ConfiguringState.cs:line 225
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
       at Xamarin.Messaging.Integration.State.ConfiguringState.<CheckHostConfigurationAsync>d__15.MoveNext() in E:\A\_work\548\s\External\messaging\src\Xamarin.Messaging.Integration\State\ConfiguringState.cs:line 151
    System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs22944wilhe - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
    


    w.

    • Moved by CoolDadTx Thursday, May 28, 2020 1:40 PM Xamarin related
    Sunday, May 17, 2020 11:23 PM

All replies

  • Hello, nobody has an idea?
    "An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: ssh-keygen: illegal option -- m"
    thanks

    w


    w.


    • Edited by wil70 Monday, May 25, 2020 12:49 AM
    Monday, May 25, 2020 12:32 AM
  • Hi wil70,

    Since this thread is related to Xamarin, so I suggest that you can ask your question in the Xamarin Community Forums to get better support.

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, May 28, 2020 6:45 AM