I have a fully set-up Mac with OSX 10.11 with all the necessary to run Xamarin for iOS.
I've installed on a Windows 10 laptop Visual Studio 2015 and got the following error:
Unable to authenticate with ssh keys. Please try to log in with credentials first
Then I've installed on a W7 PC VS2015, same up to date version of the laptop, and tried the same connection, under the same network: works flawlessly.
Everything is form the stable channel.
The firewall on the laptop, like on the other PC allows Xamarin to comunicate on LAN.
From the laptop and the PC I can remotely login via ssh the Mac in less than a second.
Here's the log from the laptop:
Xamarin Information: 0 : [2017-01-23 21:54:24.1947] Xamarin - 4.2.2.11-cycle8+00fa5cc
Xamarin.VisualStudio.Activation.AccountManager Information: 0 : [2017-01-23 21:54:24.4013] VS2015 Community
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:24.6238] No license found for iOS
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:24.7790] Running license sync for iOS
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:24.9327] Not logged in, using iOS Community
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:25.1185] No license found for Android
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:25.2981] Running license sync for Android
Xamarin.VisualStudio.ActivationManager Information: 0 : [2017-01-23 21:54:25.4847] Not logged in, using Android Community
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:25.7654] Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:25.9455] Initialization finished
Xamarin.VisualStudio.Android.XamarinAndroidPackage Warning: 0 : [2017-01-23 21:54:26.1277] Initializing Xamarin.VisualStudio.Android.XamarinAndroidPackage
Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerService Warning: 0 : [2017-01-23 21:54:26.6038] An unexpected error occurred trying to initialize Android Designer.
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:37.7048] Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage Information: 0 : [2017-01-23 21:54:37.8834] Initialization finished
Xamarin.VisualStudio.IOS.XamarinIOSPackage Warning: 0 : [2017-01-23 21:54:38.0746] Initializing Xamarin.VisualStudio.IOS.XamarinIOSPackage.
Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2017-01-23 21:54:38.2597] MDAddinsHash: c92d0626d347aaa02839689eaac2961d24c9f446
Xamarin.VisualStudio.IOS.Bonjour.BonjourDiscovery Information: 0 : [2017-01-23 21:54:40.8859] Bonjour service 'Gian iMac' did not respond with its IP address.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-01-23 21:54:58.6464] MacServer State transition from DisconnectedState to SshConnectingState on Gian-iMac.local (192.168.1.100)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2017-01-23 21:55:09.3709] Starting connection to Mac Gian-iMac.local...
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2017-01-23 21:55:16.7865] Unable to authenticate with SSH keys. Please try to log in with credentials first
Xamarin.Messaging.VisualStudio.Exceptions.MessagingAuthenticationException: Could not authenticate the user 'gianventotto' with SSH keys. Please check that both $HOME folder and ~/.ssh/authorized_keys have the appropiate permissions to use SSH. More details: Permission denied (publickey). ---> Renci.SshNet.Common.SshAuthenticationException: Permission denied (publickey).
in Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
in Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory)
in Renci.SshNet.Session.Connect()
in Renci.SshNet.BaseClient.Connect()
in Xamarin.Messaging.Client.Ssh.SshMessagingConnection.ConnectSsh()
in Xamarin.Messaging.VisualStudio.MessagingService.<ConnectAsync>d__71.MoveNext()
--- Fine della traccia dello stack dell'eccezione interna ---
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2017-01-23 21:55:17.1607] Unable to authenticate with SSH keys. Please try to log in with credentials first
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-01-23 21:55:17.3478] MacServer State transition from SshConnectingState to DisconnectedState on Gian-iMac.local (192.168.1.100)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-01-23 21:55:17.5335] Disconnected from Mac Gian-iMac.local (192.168.1.100)
And here's the corresponding Mac sshd log:
Jan 23 21:54:49 DellGian sshd[432]: Invalid user a from fe80::684c:a641:25d5:499a%en1
Jan 23 21:54:49 DellGian sshd[432]: input_userauth_request: invalid user a [preauth]
Jan 23 21:54:49 DellGian sshd[432]: Connection closed by fe80::684c:a641:25d5:499a%en1 [preauth]
Jan 23 21:54:49 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.B87D7BAE-892F-4EB8-91E9-FD74A3B0C534[432]): Service exited with abnormal code: 255
Jan 23 21:55:06 DellGian sshd[434]: Accepted keyboard-interactive/pam for gianventotto from fe80::684c:a641:25d5:499a%en1 port 54361 ssh2
Jan 23 21:55:08 DellGian sshd[438]: Accepted keyboard-interactive/pam for gianventotto from fe80::684c:a641:25d5:499a%en1 port 54366 ssh2
Jan 23 21:55:09 DellGian sshd[437]: Received disconnect from fe80::684c:a641:25d5:499a%en1: 11: Connection terminated by the client.
Jan 23 21:55:09 DellGian sshd[437]: Disconnected from fe80::684c:a641:25d5:499a%en1
Jan 23 21:55:09 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.3A1CBE22-0A14-479F-AB4B-47981092D26C[434]): Service exited with abnormal code: 255
Jan 23 21:55:09 DellGian sshd[441]: Received disconnect from fe80::684c:a641:25d5:499a%en1: 11: Connection terminated by the client.
Jan 23 21:55:09 DellGian sshd[441]: Disconnected from fe80::684c:a641:25d5:499a%en1
Jan 23 21:55:09 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.0EEDF8CA-4DBF-4EF5-BCC8-00CF25C16C83[438]): Service exited with abnormal code: 255
Jan 23 21:55:28 DellGian sshd[445]: Connection reset by fe80::684c:a641:25d5:499a%en1 [preauth]
Jan 23 21:55:28 DellGian com.apple.xpc.launchd[1] (com.openssh.sshd.486B5640-1C66-40F0-AFEC-44D3C54C39E9[445]): Service exited with abnormal code: 255
Shouldn't I just use the PC? Nope, it needs almost 10 min to start Visual Studio!
Thanks in advance for any help.
It sounds like your Win 10 laptop has ssh keys in place for passwordless login, and perhaps (or not) that key was added to your authorized_keys file on your Mac at ~/.ssh (shortcut for /Users/<username>/.ssh) , but that the login with the ssh keys is not working, perhaps due to permissions issues. Relevant line of log above:
Xamarin.Messaging.VisualStudio.Exceptions.MessagingAuthenticationException: Could not authenticate the user 'gianventotto' with SSH keys. Please check that both $HOME folder and ~/.ssh/authorized_keys have the appropiate permissions to use SSH. More details: Permission denied (publickey). ---> Renci.SshNet.Common.SshAuthenticationException: Permission denied (publickey).
Maybe try removing your Win 10 ssh key from the authorized_keys file on your Mac and log in from VS using your username and password instead?
Related
i have a problem with usb modem & armbian on Rock64.
I have fresh image of Armbian 22.08 Jammy on my Rock64 hardware.
I plugged in DWM-222 (D-link usb gsm modem), installed usb-modeswitch & modem-manager
and i have created connection with modem-manager.
The connection was working successfully for one day, but then it lost connection.
I made a restart and it was up again for few minutes. Then got down.
Now i am unable to get it working at all.
I tried again total clean image with just the steps above, and it keeps reporting
netlink operation failed: netlink support not available
I couldn't find anything about this error on the internet.
Power supply is proper one (3A) and DWM-222 is working normally on my Ubuntu desktop PC.
This is full log:
Nov 16 20:17:45 rock64 NetworkManager[1630]: <warn> [1668626265.2333] modem-broadband[cdc-wdm0]: failed to connect modem: Couldn't reset interface before setting up data format: netlink operation failed: netlink support not available
Nov 16 20:17:45 rock64 NetworkManager[1630]: <info> [1668626265.2335] device (cdc-wdm0): state change: prepare -> failed (reason 'unknown', sys-iface-state: 'managed')
Nov 16 20:17:45 rock64 NetworkManager[1630]: <warn> [1668626265.2388] device (cdc-wdm0): Activation: failed for connection 'DLINK_modem'
Nov 16 20:17:45 rock64 NetworkManager[1630]: <info> [1668626265.2400] device (cdc-wdm0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Do you have any suggestions ?
Thank you
I'm currently using the Chilkat HTTP ActiveX control (version 9.3.2.0) with VB6... One of the servers where I download files from is switching over to https, but I can't get it to work... Using http it works perfectly, but when I change the URL to https it returns 0.
Here is the result of Http.LastErrorText:
ChilkatLog:
Download:
DllDate: Aug 5 2012
UnlockPrefix: **********
Username: BILL-DESKTOP:Bill
Architecture: Little Endian; 32-bit
Language: ActiveX
VerboseLogging: 0
backgroundThread: 0
url: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_0p25.pl?file=gfs.t12z.pgrb2.0p25.f000&lev_10_m_above_ground=on&lev_2_m_above_ground=on&lev_entire_atmosphere=on&lev_entire_atmosphere_%5C%28considered_as_a_single_layer%5C%29=on&lev_mean_sea_level=on&lev_surface=on&var_APCP=on&var_PRMSL=on&var_TCDC=on&var_TMP=on&var_UGRD=on&var_VGRD=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.2018120712
toLocalPath: C:\Progra~1\PCGrADS\gfs\grib\gfs_pgrbf_000.grib2
localFileAlreadyExists: 0
QuickGetToOutput_Download:
qGet_1:
simpleHttpRequest_3:
httpMethod: GET
requestUrl: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_0p25.pl?file=gfs.t12z.pgrb2.0p25.f000&lev_10_m_above_ground=on&lev_2_m_above_ground=on&lev_entire_atmosphere=on&lev_entire_atmosphere_%5C%28considered_as_a_single_layer%5C%29=on&lev_mean_sea_level=on&lev_surface=on&var_APCP=on&var_PRMSL=on&var_TCDC=on&var_TMP=on&var_UGRD=on&var_VGRD=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.2018120712
Connecting to web server...
httpServer: nomads.ncep.noaa.gov
port: 443
Using HTTPS.
ConnectTimeoutMs_1: 10000
calling ConnectSocket2
IPV6 enabled connect with NO heartbeat.
connectingTo: nomads.ncep.noaa.gov
dnsCacheLookup: nomads.ncep.noaa.gov
Resolving domain name (IPV4)
GetHostByNameHB_ipv4: Elapsed time: 140 millisec
myIP_1: 192.168.1.38
myPort_1: 55564
connect successful (1)
clientHelloMajorMinorVersion: 3.1
buildClientHello:
majorVersion: 3
minorVersion: 1
numRandomBytes: 32
sessionIdSize: 0
numCipherSuites: 10
numCompressionMethods: 1
--buildClientHello
TlsAlert:
level: fatal
descrip: handshake failure
--TlsAlert
Closing connection in response to fatal error.
Failed to read incoming handshake messages. (1)
Client handshake failed. (3)
Failed to connect to HTTP server.
connectElapsedMs: 640
--simpleHttpRequest_3
--qGet_1
--QuickGetToOutput_Download
bFileDeleted: 1
totalElapsedMs: 672
ContentLength: 0
Failed.
--Download
--ChilkatLog
What am I doing wrong?
Regards,
Bill
You were using an old version from 2012, which did not yet implement TLS 1.2. Chilkat has since added support for TLS 1.2 (for many years now) and the latest version should work fine.
I install ROS on my server, but when I called ros start and it will running at my server, here is the log:
login as: root
root#*.*.*.*'s password:
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-109-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Welcome to Alibaba Cloud Elastic Compute Service !
root#iZwz940pq66re8qvh8adzuZ:~# ros start
info: Loaded feature token capabilities=[Sync], expires=Wed Apr 19 2017 22:15:29 GMT+0800 (CST)
info: Realm Object Server version 2.5.1 is starting
info: [sync] Realm sync server started ([realm-core-4.0.4], [realm- sync-2.1.10])
info: [sync] Directory holding persistent state: /root/data/sync/user_data
info: [sync] Operating mode: master_with_no_slave
info: [sync] Log level: info
info: [sync] Download log compaction is enabled
info: [sync] Max download size: 131072 bytes
info: [sync] Listening on 127.0.0.1:35571 (sync protocol version 22)
info: Realm Object Server has started and is listening on http://0.0.0.0:9080
But when I entered the address in the browser, It told me that I could not connect.And I use Realm Studio to connect it also tell me that could not reach the server, did i forget something steps? Maybe my server's security policy forbide the port?
Per to the log description, Realm Object Server has started and is listening on http://0.0.0.0:9080.
Please ensure you've allowed TCP port 9080 in your ECS security group.
For detail steps, please refer the document
Add a security group rule
May 07, 2017 1:18:25 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext#2e5d6d97: startup date [Sun May 07 13:18:25 IST 2017]; root of context hierarchy
May 07, 2017 1:18:25 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [com/caveofprogramming/spring/test/beans/beans.xml]
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
Sun May 07 13:18:27 IST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Exception in thread "main" org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user '${jdbc.username)'#'localhost' (using password: YES))
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:394)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:474)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:484)
at com.caveofprogramming.spring.test.OffersDAO.getOfferss(OffersDAO.java:26)
at com.caveofprogramming.spring.test.App.main(App.java:12)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user '${jdbc.username)'#'localhost' (using password: YES))
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
... 5 more
Caused by: java.sql.SQLException: Access denied for user '${jdbc.username)'#'localhost' (using password: YES)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:545)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:513)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:115)
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:1606)
at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:633)
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:347)
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:219)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
... 9 more
I've encountered a problem with deploying my shiny app on linux Ubuntu 16.04 LTS.
After I run sudo systemctl start shiny-server, and open up my browser heading to http://192.168..*:3838/StockVis/, the web page greys out in a second.
I found some warnings in the web console as below, and survey some information on the web for like two weeks, but still have no solution. :(
***"Thu Feb 16 2017 12:20:49 GMT+0800 (CST) [INF]: Connection opened. http://192.168.**.***:3838/StockVis/"
Thu Feb 16 2017 12:20:49 GMT+0800 (CST) [DBG]: Open channel 0
The application unexpectedly exited.
Diagnostic information is private. Please ask your system admin for permission if you need to check the R logs.
**Thu Feb 16 2017 12:20:50 GMT+0800 (CST) [INF]: Connection closed. Info: {"type":"close","code":4503,"reason":"The application unexpectedly exited","wasClean":true}
Thu Feb 16 2017 12:20:50 GMT+0800 (CST) [DBG]: SockJS connection closed
Thu Feb 16 2017 12:20:50 GMT+0800 (CST) [DBG]: Channel 0 is closed
Thu Feb 16 2017 12:20:50 GMT+0800 (CST) [DBG]: Removed channel 0, 0 left*****
Please kindly give some suggestions to move on.
This can indicate something in your R code is causing an error. As that R error could be anything, this answer is to help you gather that info. The browser console messages will not tell you what that is. In order to access the error, you need to configure Shiny to not delete the log upon exiting the application.
Assuming you have sudo access:
$ sudo vi /etc/shiny-server/shiny-server.conf
Place the following line in the file after run_as shiny; :
preserve_logs true;
Restart shiny:
sudo systemctl restart shiny-server
Reload your Shiny app.
In the var/log/shiny-sever/ directory there will be a log file with your application name. Viewing that file will give you more information on what is going on.
Warning. After you are done, take out the preserve_logs true; line in the conf file and restart Shiny. If not, you will start generating a bunch of log files you don't want.