How to copy files from my PC to another thorugh SSH [Windows]
I have IP, port, user and password of destination PC. Now, I want to generate a Windows script to transfer files of C:/MyFolder of my PC through SSH to the destination PC. (I don't know file names, and I want to generate the transfer each 5 minutes).
I've been looking at something PuTTY but I've never used it. I'm thinking in something like:
:loop COMMANDS HERE timeout /t 300 goto loop
See also questions close to this topic
Windows networking: what is critical event 60001/60002/60003
I have a Windows server and in the event viewer I regularly see the following events. Does someone know what causes these errors ?
I do have issues on this server to connect to a particular port. This port is in the listening state but gives Connection refused when doing a telnet or openening a socket connection to it.
Source: Microsoft-Windows-Networking-Correlation Date: 12-12-18 15:16:06 Event ID: 60002 Task Category: None Level: Critical Keywords: (4),(1) Source: Microsoft-Windows-Networking-Correlation Date: 12-12-18 15:16:06 Event ID: 60003 Task Category: None Level: Critical Keywords: (1)
Why does gradle break my type-ahead (Windows)?
This applies to the windows version of Gradle 4.8.1
When I'm executing a gradle script it consumes my keystrokes from stdin. This seems completely unnecessary. Groovy doesn't require this and gradle doesn't seem to use the keystrokes for anything, but it stops you from issuing the next command during a build.
Is there some magic hidden keyboard command that works during builds? Is there a command line mode that activates even when it's unused.
I've never seen another program that did this, even ones that can use stdin don't just open it, leave it open then throw away the input!
I'd appreciate a way to shut it off, but I'd totally settle for some logical reason.
- OpenQueryWindow doesn't show AD's user properties
Disable output of process after timeout in command prompt
I need to execute a batch script from inside the Command Prompt in such a way that the output of the script would stop showing up after 6 seconds (without clearing the screen), but the script would still be kept running. I am unable to modify the mentioned batch script.
Is there a command for this? Is this possible?
Copying and overwriting existing file with batch
When I am running the following code:
xcopy /y c:\Users\etudiant002\Desktop\sethc.exe d:\Windows\System32 pause
which is supposed to copy a file on the desktop to the
System32and overwrite the existing file. But I get the following output.
Specification of the reader (or hard-drive idk) isn't valid 0 file(s) copied Press any key to continue...
Why am I getting this and how can I fix this?
Batch script to copy Data from subfolder
I got a code that searches specific PDFs according to the
list.txtand copies them from the
files1folder to the
@echo off FOR /f %%f IN (List.txt) DO xcopy "C:\Users\files1\%%f.pdf" "C:\Users\copyFiles" pause
now I don't only want to search in the
files1folder but also e.g
Is there an easy way to search through a directory combined with my current code?
- action doesn't execute in form submission across to use SSH frame
cannot access ssh on raspbian from different network
I am succesfully able to connect to my raspberry running raspbian stretch lite via ssh on my home network.
When i move my raspberry to another home network i keep receiving "connection refused".
Ports on the router are forwarded,ssh service is running, everything is working as expected.
The only thing i cannot understand is why i can connect from my home lan and not from my parents home lan. And there is nothing on the internet (alias google) about something related. Any suggestion?
p.s. i think that this may be related to authentication keys (something i don't understand very well)
How to Pass SSH User Private which is on Jenkins to .sh File which can use for git pull
I am making a jenkins pipeline job, which call jenkins file , inside that i m calling terraform.sh file with CredentialsBinding . when i m running the i m getting below error in terraform init.
Getting source "git::ssh://email@example.com/****/terraform-modules.git//pre-production?ref=0.0.1" Error downloading modules: Error loading modules: error downloading 'ssh://firstname.lastname@example.org/****/terraform-modules.git?ref=0.0.1': /usr/bin/git exited with 128: Cloning into '.terraform/modules/515fc2bd0e7790ab33b22f826cd0173b'... Permission denied (publickey). fatal: Could not read from remote repository.