Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am trying google cloud compute server, everything is working fine like I am able to connect using open in browser window , But when I am trying to connect using putty , its not working , i am following below docs,
https://cloud.google.com/compute/docs/instances/connecting-to-instance#putty
I also added public key into vm instance but no luck , when I am trying to connect using putty always getting below error:
Disconnected : no supported authentication method available (server sent :publickey,gssapi-keygen,gssapi-with-mic)
on server /var/log/secure
below error there,
error: Received disconnect from 223.165.28.230: 14: No supported authenti
cation methods available [preauth]
don't knew why this is not connecting .any one have any clue, please reply.
As I am new in Google cloud server so it takes sometime to undestand its authentication model,obvious borwser based ssh is good for new user but when we are handling large number of server better to go with key based (putty) method,because it is already used to and sometime we need to transfer file from our local workstation so that time key based auth is best.
finally I understnad the auth/key management of google cloud, yes below google docs are good for understand .
https://cloud.google.com/compute/docs/instances/connecting-to-instance
and for generating key ,
gist.github.com/feczo/7282a6e00181fde4281b
Above link is very very good for creating new instance/single node key management, so please read this docs first.
Note : please use cluster wise key for better management of users and servers authentication process, add key details in metadata -- sshkey , add your key to get access on all vm, yes sometime we need node wise so follow gist.github.com/feczo/7282a6e00181fde4281b ,to enable only one user for this node disable project -wise key under vm edit ssh key options .
Please read both docs before creating google cloud VM server.
Thanks Jarmod for your reply and make me understand the process
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I have been using Firebase C++ SDK's Auth and Realtime Database (for Windows) in a simple test application. After a succesful authentication every new message (node) is being arrived from the cloud within just a few millisecs until the following happens:
I leave my computer untouched in idle state.
Due to the energy settings it goes to sleep after 10-15 minutes. (don't want to change the settings!)
After I wake it up again the network connection is re-established for all other background applications (like Skype, Outlook etc)
It seems Firebase's connection is NOT re-established.
Is there any built-in function to get notification from Firebase when it's lost the connection and try to re-login, re-connect to the database either automatically or manually?
I guess it has a background keep-alive connection to check network status but I couldn't get any useful information about it. The documentation says it can keep everything synced even in offline mode.
any built-in function to get notification from Firebase when it's lost the connection[?]
For that you'd attach a listener to the virtual .info/connected node, as shown here: https://firebase.google.com/docs/database/android/offline-capabilities#section-connection-state. Somehow this section is missing from the C++ documentation, which is why I linked you to the Android version.
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 days ago.
Improve this question
I am new in Amazon AWS. I've some issue regarding DNS. The previous DNS URL was running on browser.
When we stopped and started a instance a new DNS URL has been generated.
When we opened it in browser, it is showing not found and no elastic ip found in dashboard.
Anyone knows how fix this issue.?
Your instance's IP is dynamic. It can (and almost certainly will) change each time you stop and start the instance.
To get a static IP, get an Elastic IP and associate it with that instance.
Alternatively (but not recommended), you can use a dynamic DNS provider.
If you're just asking why the DNS generated for the instance after relaunching doesn't work in a browser, there are lots of possible reasons, but the most likely is that your HTTP server (Apache, nginx, whatever) didn't restart. Make sure you launch whatever services you need.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
i want to create two programs in Qt with one server and another client, my server programs insert user and customer information like fingerptint and another important data and in client users and customers use their information for working on some privacy stuff, these programs must send information on network.
so i think using Postgresql for database on server and client just connect to database and get needed information as login and etc.
and now this is my problems
my network connection must be secure no one can extract data send to
client? (so i think postgres handle this for me, am i right?)
i want to client has offline mode, so i don't mind if i must setup
another Postgresql database on client PC, and then how i can tell
postgres update himself from server or vice versa?
finally whats the best solution you think?
thanks a lot
Wow, that's a bit open-ended. See https://stackoverflow.com/faq#dontask . Keep your questions specific and focused. Open ended I-could-write-a-book-on-this questions will get closed.
Quick version:
my network connection must be secure no one can extract data send to client? (so i think postgres handle this for me, am i right?)
Correctly used SSL will give you one-way trust, where the client can verify the identity of the server. The server must still rely on passwords to identify the client, but it can do that over SSL.
You can use client certificates for true two-way verification.
If you're doing anything privacy sensitive consider using your own self-signed CA and distributing the CA cert through known-secure means. There are too many suborned sub-CAs signing wildcard certificates for nations to use in transparent SSL decryption for me to trust SSL CAs for things like protecting dissidents and human rights workers when they're using an Internet connection supplied or controlled by someone hostile to them.
Don't take my word on this; read up on it carefully.
i want to client has offline mode, so i don't mind if i must setup another Postgresql database on client PC, and then how i can tell postgres update himself from server or vice versa?
It sounds like you want asynchronous replication with intermittent connections.
This is hard. I recommend doing it at the application level where you can implement application-specific sync schedules and conflict resolution logic. You can use trigger maintained change-list tables to keep a record of what changed since the DBs last saw each other. Don't use timestamps to keep in sync, as they clock drift between server and client will cause you to miss changes. You might want to use something like the pgq ticker on the master DB.
finally whats the best solution you think?
Too open ended, not enough info provided to even start to answer.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I get this error when connecting to a MySQL database:
Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)
The problem seems to occur by using different versions of libmysql.dll.
I could connect using a previous version which I got from installing MySQL Community Server (5.6.0). However, when I built the libmysql.lib and .dll myself, using the MySQL C/connector source code, the connection fails with the above error. So this leads me to think that there might be a setting within the source code when building the DLL file that I must observe to connect properly. What might it be?
That's not a connector issue, but rather a database one: this blog post covers it. Basically, the password hashing changed from 4.1 onward, but the old method was kept around with the OLD_PASSWORD function to access it. However, version 5.6 decided to simply refuse connections still based on that authentication method.
So you have 2 solutions:
As a first step, follow the quick and dirty work around hinted by the mysql documentation, by using the server --skip-secure-auth startup parameter: this is a short term solution to get your db connections working again after upgrading the server
upgrade your database content, by having all account passwords using the old encryption method updated to the new one: This is the prefered method, since you will effectively be using the new encryption, and avoid the insecure situation that the above switch still allows. Don't forget to remove the switch from the first solution once your db is up to date.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
This application sends data periodically to a server. What I need to do is setup a testing environment on the local developing machine so that I can check the correct packets are being sent in each situation. I thought a good approach would be a server VM set up on the local computer which would receive the packets and respond just like the real thing, but the problem is how do I route the packets of an application running on windows to a VM machine. I don't want to modify my application code. I just want to have windows pass on the packets it receives from the application to the VM or otherwise another application that will do the testing. Is this possible? If not, please let me know about any other solution(s) to this problem.
If you're running a decent VM you should be able to give it an IP address visible from the host, and configure it so that you can run web servers on it, ssh to it, etc.
Look at the networking features of your VM. Or find a tutorial on how to do this, such as this one for VirtualBox:
http://www.tolaris.com/2009/03/05/using-host-networking-and-nat-with-virtualbox/
Well it's some kind of a hack but you can use ARP Poisoning (man in the middle attack) to sniff packets. There is a tool named Cain & Abel which can do this for you. I've used this tool to sniff packets between two non-pc machines. Use at your own risk and if your anti-virus tool alerts, know that the tool has no virus but what it does is detected as one.
Edit: Please note that my approach doesn't require a VM server.