Hot answers tagged

6 votes
Accepted

How to use ssh hostkey from a Linux server with plink.exe on a Windows host?

You can use plink itself to get the host key: c:\> plink -v -batch host Connecting to 1.2.3.4 port 22 We claim version: SSH-2.0-PuTTY_Release_0.68 Server version: SSH-2.0-OpenSSH_7.6p1 Ubuntu-...
user avatar
4 votes

How to use ssh hostkey from a Linux server with plink.exe on a Windows host?

You can get the fingerprint of the key from the target host itself by running: $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub 2048 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff /etc/ssh/...
user avatar
  • 4,611
4 votes
Accepted

Log onto Windows AD Domain via SSH using private key

It's not possible to logon to an Active Directory domain account with an SSH key in place of a username and password.
user avatar
  • 53.2k
3 votes

Auto-storing server host key in cache with plink

The accepted is answer is "acceptable", but unsecure. The best way would be to specify host key to plink to prevent any Man-In-the-Middle attack. plink -hostkey aa:bb:cc... root@REMOTE_IP_HERE [...]
user avatar
2 votes

Auto-storing server host key in cache with plink

PuTTY and plink.exe share the same cache of 'acceptable server keys' on the host they are installed on. So if your scenario is interactive (and hence your frustration not being heard when you press 'y'...
user avatar
2 votes
Accepted

How to use plink to create SSH tunnel to database?

plink.exe webserverdomain.com -P 22 -l username -i C:\path to file\private.ppk -L 127.0.0.1:3307:127.0.0.1:3306 -L [listen-IP:]listen-port:host:port Forward local port to remote ...
user avatar
  • 7,555
2 votes

Connect to an SSH server over an HTTP proxy using plink and netcat

In Putty, in Configuration->Connection->Proxy, you can configure a HTTP Proxy directly without using ncat. In plink, you can refer to a Putty configuration. The help text says "host" can also be a ...
user avatar
  • 2,998
1 vote

Key forwarding with putty isn't working, but plink DOES work

Downgrading to putty 0.74 fixed the problem. I will see about filing a bug on putty. I also tried 0.75 which didn't work. edit: I got in touch with the putty project. It's a problem they know about ...
user avatar
  • 169
1 vote
Accepted

Using Putty/plink to connect to remote MySQL from Windows machine using Port Forwarding and multi hop SSH tunnel

If there is no explicit requirement to use putty/plink, I would just use Windows built-in ssh for the purpose. It is the same SSH as in Unix.
user avatar
1 vote

Connect to an SSH server over an HTTP proxy using plink and netcat

Thanks you question, i success in Window 10 1903 via open ssh, below is my command: ssh root@domain.com -o "ProxyCommand C:\Program Files (x86)\Nmap\ncat.exe --verbose --proxy-type http --proxy 127....
user avatar
  • 11
1 vote
Accepted

putty-tools issue, no output

You should have a look at the available entropy on your system. RSA key generation needs lots of entropy. I encountered some performance degradation on non prepared VMs (about factor 100). If cat /...
user avatar
  • 488
1 vote

Sending keystrokes using plink

to avoid the "Enter" keystroke, you can add the -batch option : plink -ssh user@192.168.1.1 -batch "conf terminal; ip scp server enable"
user avatar
1 vote
Accepted

Sending keystrokes using plink

try using ' < ' insted of -m parameter. The final command will look like this plink -ssh user@192.168.1.1 -pw password_something < do-stuff.txt > output.txt In this case, your do-stuff....
user avatar
  • 4,379
1 vote

Dumping command output from SSH session to procurve

Do you have to use putty from Windows? Coming from a Linux box, I would either do ( echo $password ; echo ; echo ; echo show mac-address ) \ | ssh -l $user xxx.xxx.xxx.xxx or if that does not work, ...
user avatar
  • 3,487
1 vote
Accepted

Cannot run passwd through plink

You could try adding -t to your plink command line as passwd is interactive and needs a tty. Most passwd implementations* only allow root to specify a username perhaps you need to use either plink....
user avatar
  • 114k
1 vote

unable to run the script in linux using plink

You could configure sudo on your remote host to allow user-X to execute your script without password authentication: #/etc/sudoers # or new include file in /etc/sudoers.d/ user-X ALL=(user-Y) ...
user avatar
  • 70.8k
1 vote

Git, plink, and cmd.exe: how do I set plink.exe to be verbose when used as GIT_SSH

The "Plin" error is actually the first 4 characters of the returned error message from the Git server. Typically the account name passed in from 'echo %USERNAME%' when using plink.exe to provide the ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible