I am a basic learner to ansible and trying to establish the connection to windows machine and observing below error
"msg": "ssl: auth method ssl requires a username",
and i have gone through multiple sections in github but they are not working
can you please help me in fixing the below
i have executed the below powershell script but it didn't give any error
I know this error is related to this line of code
this is the forum who suggested it is code level change
but didn't understand where this to be added i didn't find this file. I have installed python2-winrm-0.3.0-1.el7.noarch
Help me in sorting out this issue
For connecting ansible to Windows machine you need to do some pre-requisite.
You need to run a ansible powershell script. The instructions is easily available on the ansible documentation
Related
I am trying to configure Host Based Authentication for SSH from Windows to Windows using OpenSSH. I have found the following articles but they are Linux based.
https://www.golinuxcloud.com/configure-ssh-host-based-authentication-linux/
https://www.lehigh.edu/~insna/OpenSSH-HOWTO-hostbased-auth.htm
https://docs.oracle.com/cd/E36784_01/html/E37125/sshuser-12.html
I have followed the same steps as mentioned in these articles. Although I know that the configurations should be same, but somehow I am not able to connect to remote machine. Here is the error I am getting
Permission denied (publickey,keyboard-interactive,hostbased)
I am not able to understand what I am missing. I was looking for articles which describe the steps for Windows, as it will be easy for me to understand if I am missing something.
Got the solution. The following configuration must be set.
StrictModes no
It is by default set to yes, and is commented out in the sshd_config file. StrictModes is set to no for Public Key Authentication and Host Based Authentication.
None of the above articles (plus others too) have mentioned it, unfortunately.
I have Oracle Linux 8.5 in Oracle Cloud, and have been using the host for several months.
But today I was trying to setup vscode remote ssh and looks like I messed up the ssh key that I use to login to the host. Now I cannot!
I tried to follow this documentation and this thread to fix some commands.
However, that did not help! And in fact now the host having difficulty stopping quickly; rebooting looks fine.
Any ideas on how to correct this issue?! (Was having a lot of fun until this struck :) )
In the OCI console, go to the instance, and click on the "console connection", this will show you 2 options, one is create local connection, which will allow you to upload a new ssh key file. Or you can create a console connection and then update the authorized_keys file with your new id_rsa.pub contents
Console connection did NOT work for me. That's why I went by attaching the volume to another instance. The documentation I followed suggests to mount /dev/sdb3. However that did not work for me. Instead, I mounted /dev/ocivolume/root, and modified the ssh key there, and now works!
I am trying to use MySQL Cluster 7.5 version , after opening the web browser and clicking on :create new MySQL cluster", and getting in the "define cluster" page , I write the IP of the remote data node in to the host list field ,but I get error which say "there were errors when connecting to the remote hosts, host 172.16.1.129: couldn't open socket to 172.16.1.129 ,press'ok to continue to the next page anyway, or cancel to stay in the previous page"
I turned off windows firewall options too, but no luck,
what is the cause of this error and how to solve it?
What are the essential steps to install/configure in remote pc (data node).?
Thanks a lot
https://www.mysql.com/support/supportedplatforms/cluster.html
Did you check this? if you OS supports?
This has nothing to do with supported platforms. My guess is the credentials you used to connect to nodes are bad. In that version of MySQL NDB Cluster autoinstaller you can provide only Cluster-wide credentials, i.e. one credentials for all the hosts. Those credentials could be a) private key without passphrase (idrsa in ~/.ssh) or b) ordinary username/password. Please see html help file that comes with Autoinstaller for details.
After a long research here on Stackoverflow and on net I didn't found nothing talking about it. As the title say, how can I do that?
For example: I am owner of a hosted website that allow me to manage the database via PhpMyAdmin. When I try to connect to my database via prompt, the connection never go fine. It could be because of OS settings (right?).
How can I do that (in both OSs).
Thanks in advance.
If I understand your question correctly:
You have a website with a MySql database hosted on your providers servers.
When you try to use your local PC installation of MySql from a command prompt, it will not let you connect.
I use dreamhost.com and have a similar setup. If I want to use database tools from my local PC to connect to the database, I have to enter my IP address in the db configuration page under "allowed hosts".
Restricting remote database connections to specific IP addresses protects your database from random hacking attempts.
As for your question about restricting command line execution of a program, that is usually just caused by missing configuration information in the environment variables - leaving the path to the executable out of the PATH variable is a common one. You would still be able to run the program if you enter the full path to it.
It really depends on the error message you get when trying to run the program from the command line.
I´m following the steps outlined in Tim Davis´ blog for setting up GIT with copSSH on Windows (http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/) but I´m having problems. I´ve gotten up to step 15 under the Installing Putty instructions but rather than getting a "Enter Login" message, I´m getting a "Network Error: Unable to connect to server" error.
I know that it could potentially be a myriad of things but I was wondering if by some miracle, someone could give me some ideas of what else I should check?
I´ve doublechecked the following:
IP address is correct
User has been added to copSSH
Key is stored in the specified user folder
Rule has been added to Firewall
(NOTE: We´re using a server on 1and1.com and the firewall rules allow us to specify a local port and a remote port. Have configured to local port 4837 and remote port to Any).
I tried to doublecheck if the SSH service is running but I don´t know what it´s called. I noted down the username and password from the copSSH setup but I haven´t seen anything remotely similar to SSH in the list of services.
Any help would be greatly appreciated!! I´ve never had to do something like this before so I´m a little lost.
Regards,
Kat
Troubleshooting
Are you specifying port 4837 in the Putty window?
I personally suggest using OpenSSH or SmartGit, not Putty... I've seen too many issues with it.
Also, I suspect your firewall configuration needs to be local port=Any and remote port=4837.
The 5 minute shortcut
This installer sets up a windows git server using CopSSH. It configures the firewall, the user accounts, and gives you a GUI for all the SSH and keys stuff. It costs $9, but it saves hours of configuration (it's a 5 minute, 3-step install). It has a self-contained Git install, so no conflicts should happen.
NOTE: I'm the webmaster of windowsgit.com. I got the project started after taking a good look at Davis' tutorial and thinking.... oh, ----! The CopSSH author and I collaborated to make the automate the process and reduce the number of frustration-related keyboard deaths :)