Can I use sshpass in Windows? - sshpass

I am trying to ssh to Linux without entering a password from Windows system.
I have downloaded sshpass-1.08 and compiled it successfully.
But when I tried to ssh to Linux with sshpass, I still had to enter a password.

Related

Installing SSH on local windows machine for AWS configuration

I am configuring my AWS CLI and I am trying to setup SSH. Whenever type in anything (I am just trying the default "aws-eb" I always get the error "To use this command, SSH must be installed on your local machine and available from the command line.".
Amazon says I must have ssh-keygen as well as SSH installed but I can't really find where to install SSH onto my computer.
I have installed OpenSSH Client and OpenSSH server through windows settings but that doesn't work. Can anyone help?

No prompt ubuntu virtual machine using vagrant on Git Bash

After logging into the VM using vagrant ssh using GitBash on Windows 10, I don't see any directory prompts. While it does run the python web forum (for a tutorial on Udacity on Intro to Relational Databases), it won't let me run psql so I can continue the lesson. I can change directories, list information about the files, and run python but the prompt isn't working like normal.
Screenshot here: screenshot.
Please note the forum is running, this screenshot was taken after I exited and restarted vagrant.
Vagrant version 1.9.6
Ubuntu version 16.04.2 LTS
All programs installed or running in administrator mode.
I had the same problem attempting to set up Laravel Homestead - in my case it seems to be an issue with Git Bash / MINGW64.
My work-around was to use PuTTY
Install PuTTY, PuTTYgen
Create a .ppk of the key you're using to connect to the vagrant vm by loading the private key in PuTTYgen and saving the private key
Create a new PuTTY session with your vagrant details, in my case I just copied what was displayed after running "vagrant up" as far as SSH address, username (my PuTTY session Host Name would be "vagrant#localhost" port: 2222)
specify the ppk in the PuTTY configuration under Connection-> SSH-> Auth-> Private key for authentication
In short, try connecting with PuTTY or some other terminal emulator and see if you have any luck.
I wasn't able to get Git Bash to work, but the show window for the Oracle VM VirtualBox Manager does work just fine. I've been using Git Bash to start the VM, then switch to the Oracle VM UI window.
I had the same issue with truing to connect to a virtual Homestead session (Laravel) using virtual box and I was trying to connect via Gitbash MINGW64 as well.
I tried the same in cmd.exe (command: vagrant ssh) and it worked.
So should be issue with Git bash.

hg clone ssh://user#url fails on windows 7 (cygwin), but works on OS X

I tried to do hg to a remote server (hg pull or hg push). Failed on Windows, but succeeded in OS X. I used the same ssh private and public keys for Windows and OS X. Here are the details:
On Windows, I used cygwin, for which I also installed openssh. The private and public keys are inside .ssh folder of cygwin home (/home/simo/.ssh). When I did, say, hg clone ssh://simo#url in cygwin, a popup windows of title TortoisePLink appears and asks me to enter Password, which, I believe, means the passphrase of the ssh key. I entered, and it immediately asks me to enter it again and again (the same popup window). I double-checked the password, of course. If I keep entering the password 5 times, then it stops and says Too many authentication failures for simo and abort: no suitable response from remote hg!.
Ironically, if I don't use Cygwin, but use Command Prompt, I still run into the same issue. This may be the key to understand the issue, because I am not sure the ssh used in command prompt is the same as the ssh used in cygwin, and therefore the ssh key does not seem to matter in either case. First, I only stored the key for .ssh in cygwin, I ran into the problem. I tried command prompt (without copying the ssh keys to there), I also ran into the problem, so looks like the ssh key is not used at all during the hg. I then tried copying the key to the home dir of command prompt (C:\Users\simo\.ssh), I also faced the same issue.
I copied the ssh keys to my Mac OS X, put them inside .ssh, and run. Everything works fine. Any idea why I failed on Windows with hg ssh? Could the problem is because if Cygwin? Because the ssh keys are not used/not found? and why the heck the popup window with title TortoisePLInk keeps asking me for password?
On Windows you can have two different formats for ssh keys:
if you use Cygwin and openssh the format is similar to Unix one
if you use PuTTY/Pageant (ssh agent) the format is different
So you have to choose which one you want to use. Note that you can "import" you Unix format keys into a Pageant agent, this should then work right out of the box with Tortoise.
But you can also configure in mercurial.ini to use the Cygwin ssh (see for instance this answer: https://stackoverflow.com/a/18973676/236726)
Hope it'll help.

how to activate telnet in windows 7 without administration

How can I enable/activate commandline telnet without having admin privileges? I don't wish to use putty. I wish to use native telnet that starts from commandline.
This is not necessarily the answer to activate telnet, but this does answer how to get telnet working from commandlline on windows 7 without having admin privileges and without putty.
Answer is pretty simple:
Install cygwin with inetutils for telnet http://www.question-defense.com/2010/11/30/install-telnet-using-cygwin-on-windows-7,
Add cygwin bin to my local env PATH variable https://superuser.com/questions/25037/change-environment-variables-as-standard-user-windows-7

Unable to ssh login from windows to ubuntu

I am trying to login on my ubuntu server from windows pc using putty ssh but it says connection refused.
I am able lo login on ubuntu using command
$ ssh root#MY-IP-ADDRESS
not able to login using remote server.
Please Help me.
I was having the same issue and nothing was working for me to connect to ec2 linux instance from Windows 7. Here is how i was finally able to connect.
1.) Download puttygen.exe and create a .ppk file from your .pem file that you downloaded from amazon.
2.) Use FireSSH (plug-in for Firefox), put in your host name, use 'ubuntu' (minus the quotes) for the Login, leave password blank and enter the location of the .ppk you created from puttygen.exe
Note: Oddly enough i was not able to connect using putty.exe but the private key it generates works fine with FireSSH
Did you install openssh-server ?
aptitude install openssh-server
Then also check you don't have firewall running on your Ubuntu.

Resources