PyCharm SSH interpreter GCP VM - ssh

I'm trying to set up the SSH interpreter with PyCharm on Windows. I have a VM on Google Cloud Platform, I've generated private/public keys with puttyGen and I can establish a connection with putty.
However, I can't SSH with PyCharm pro even though I use the same settings (private key and public IP from the VM).
Any ideas why>?

Found the solution.
The problem is that PyCharm doesn't support the file format generated by Putty. I've just ended up generating the key with linux.

Related

Pycharm Remote Dev using SFTP with Yubi Key authentication

I have PyCharm Pro. I am trying to do remote development on a server. I have read the following Jetbrains tutorials:
Deploying Applications
Remote Development on Raspberry Pi
as well as the very helpful tutorial:
Remote debugging with pycharm the missing tutorial
While I seem to be able to set everything up, authentication fails when I try to connect to the remote server using the 'SFTP' protocol. I can make an SSH and SFTP connection from the CLI in a terminal so I know the ssh configuration settings are correct. However, in my case authentication requires ssh and having a Yubi key connected to my laptop. Does that make a difference?
Has anyone had a similar issue? If so, how did you resolve it?
On MacOS the challenge is where the IDE is getting it's ssh socket agent. To make this work in my case I have to launch the PyCharm Pro IDE from a terminal.
Go to '/Applications/PyCharm.app/Contents/MacOS' directory and launch with './pycharm'

Cannot connect to remote host in pycharm

I just can't connect to remote interpreter in Pycharm professional on my Mac. But I've connected to my interpreter very well in the past few weeks.
It is always showing "Connecting to XXX(my host ip)". I configured it with SSH Credentials and Deployment configuration. And I tested the sftp, it worked fine.
However, I can use my terminal to connect to my host successfully via ssh.
I just don't understand what happens.
I tried many ways and finally found that it was because I changed the default bash to zsh on my server. After changing zsh back to bash, it was fixed.

Login to raspberry pi running Windows IoT Core through public key authentication instead of password

I am currently using a Raspberry Pi3 running Windows Core IoT, and I can successfully log in using PuTTY as an SSH client, but it asks for a password. I was wondering if there is a way to use an RSA public key file for authentication instead of the password.
I know this can be done in linux with the authorized_keys file in the .ssh folder and changing the configuration file to allow such login method... Is there an equivalent procedure for Widnows Core IoT?
While I haven't been able to find anything about using keys, you could consider using KiTTY, a PuTTY fork.
Before I switched to linux full time, I used KiTTY, because it's much more configurable, and also allows stored plaintext passwords. It's much better than PuTTY, in my opinion.

Need to install Firefox browser on Hortonworks Sandbox virtual machine (HDP 2.4) running in Virtual Box 5.0.16

I am new to Hadoop and the Big Data world...
I have installed the Hortonworks Sandbox VM in Virtual Box. It's working great...
Can someone tell me how to install Firefox within the VM? I need it to use NIFI
Thanks a lot for any help!
Installing a browser on the VM and using it through VNC will typically be very slow. The best option is to set up an SSH Tunnel and do a local forward. If you use the PuTTy ssh client on windows then you can follow the following instructions on setting up the local forward which will allow you to use your browser on the host operating system to connect to the NIFI instance running in your VM.

Ansible SSH Key Setup

I'm dipping my toes into Ansible and I'm having trouble configuring SSH keys.
I currently have two Ubuntu 14.04 VMs running and present in the Ansible hosts file.
I also have an extra VM which is being used for Ansible management.
I have created an SSH key on the management machine and 'ssh-copy-id' them to both of the Ubuntu 14.04 VMs.
Based on watching videos and following tutorials of Ansible configuration, I should now be able to run 'ansible instancegroupname -m ping' sequentially on both of the machines without having to enter a password.
However when running that command on the management VM, I am prompted to enter the SSH passphrase for the management VM itself, something I have not seen in the tutorial videos. It just seems to work for them?
Thanks guys.
This was solved by adding the ssh-key to the ssh-agent.