putty : export or import tunnel settings to another computer - putty

I have a set of tunnels in my putty. how do i export my tunnel settings?The tunnel images are as below.

PuTTY settings are shared in HKEY_CURRENT_USER in the registry, so you can export these to a file for use elsewhere. To export, run RegEdit.exe and navigate to HKEY_CURRENT_USER\Software\SimonTatham\PuTTY. Right click on the PuTTY entry in the tree and select Export. Save this file to your thumb drive or H: drive.

Related

how to open or read copied system registry file without import in windows 10

I have copied system registry file C:\Windows\system32\config\system from another windows machine (VM). And I want to open it and list out some keys from "...\ControlSet.." I open the Regedit and tried to open it but Regedit showing me the option of import which giving the warning that the registry keys ill be get replaced.
So I want to open it with PowerShell if not possible then want some tool to open the file and list out the required keys from it.
In your PowerShell script, you can use reg load/unload to automate what you described above.
$null = reg load HKU\CustomFolderName "c:\path\SYSTEM.DAT"
...
script code here
...
$null = reg unload HKU\CustomFolderName
Found one way is using Load Hive Option in Regedit.
Select the Hive HKEY_LOCAL_MACHINE or HKEY_USERS then
'File > Load Hive' then select the file to load then
Write the path or name of the key in the opened dialog box.
If the key does not exist in the selected hive it will create key and will load the
selected file under it.

Why does vagrant ssh'ing always re-ask me for my ssh executable?

Using Vagrant under Windows 7, trying to ssh into my VM. If I open cmd and run vagrant ssh, I am given the response:
ssh exectuable not found in any directories in the %PATH% variable, Is an SSH client installed? Try installing Cygwin, MinGW, or Git, all of which contain an SSH client. Or use your favorite SSH client with the following authentication...
So I add Git to my PATH variable:
set PATH=%PATH%;C:\Program Files (x86)\Git\bin
And I confirm my PATH variable now contains this:
<snip>C:\ProgramData\ComposerSetup\bin;C:\Program Files\cURL\bin;"C:\Program Files (x86)\Git\bin";"C:\Program Files (x86)\Git\cmd";C:\Program Files\nodejs\;C:\HashiCorp\Vagrant\bin
So, I run vagrant ssh again, and it works:
vagrant ssh
Welcome to Ubuntu...
vagrant#mywebsite:~$
But, if I now close my cmd window and reopen it, I can no longer call vagrant ssh. I'm given the same notice I was initially given about not having an SSH client in my PATH variable. What this means is that essentially, I am being re-asked every time to provide an SSH client.
Why?
You have set the variable only for the current command session - you need to set as environment variable
For windows 7
From the Desktop, right-click the Computer icon and select Properties. If you don't have a Computer icon on your desktop, click the Start button, right-click the Computer option in the Start menu, and select Properties.
Click the Advanced System Settings link in the left column.
In the System Properties window, click on the Advanced tab, then click the Environment Variables button near the bottom of that tab.
In the Environment Variables window (pictured below), highlight the Path variable in the "System variables" section and click the Edit button. Add or modify the path lines with the paths you want the computer to access. Each different directory is separated with a semicolon as shown below. You will end up with something similar as
C:\ProgramData\ComposerSetup\bin;C:\Program Files\cURL\bin;"C:\Program Files (x86)\Git\bin";"C:\Program Files (x86)\Git\cmd";C:\Program Files\nodejs\;C:\HashiCorp\Vagrant\bin

Fastest way to copy the full path of a file and insert it into a script

In many task I've to open a file with a script so I've to type the full path of the file. Usually I go to properties of the file and then I copy the path and then the name of the file. I wonder if there is a faster way to do that.
I would like to copy it in one click or drag the file in the IDE or something like that....
(I'm using Windows XP, Mac Mountain Lion and Ubuntu 12.04 sometimes).
In windows pressing shift and right-click allows you to select copy path.
In Mac right click and pressing alt allows copying file as path.
I've found Copy path for Windows that:
that will allow you to right click on a drive or file system object
and copy the path of the file to the clipbpoard. If the drive is a
mapped drive or the file system object exits on a mapped drive it will
resolve the full UNC path.
On Windows Shift+Right Click allows you to copy the path directly.
Alternatively many shell (like the shells of Spyder and Canopy,Ipython) support a drag and drop option that allow you to drag the file inside the shell and get the path of the file.

Mounting network drive works in DOS, but breaks in Cygwin. Why?

I'm using VirtualBox to set up a windows 2008 server. I'd like to add a shared folder, but am running into problems.
Running this in DOS works:
net use t: \\vboxsrv\v-root
But in Cygwin:
$ net use t: "\\vboxsrv\v-root"
System error 53 has occurred.
The network path was not found.
I've also tried these:
$ net use t: \\vboxsrv\v-root
$ net use t: \\\\vboxsrv\\v-root
And I've tried creating a bat script containing the working DOS command, and executing it from cygwin. They all fail with the same error.
I need to do it through Cygwin, because I access the system via SSH, and land in a Cygwin environment. If there is any way to "break out" of cygwin temporarily from within Cygwin, that might be a way to go..
What am I missing?
Create a folder somewhere, like:
$> mkdir -p /mnt/t
Now you can us the mount program in cygwin, like so:
$> mount \\vboxsrv\v-root /mnt/t
Easy as 1,2,3 :-)
The Windows root path is typically found somehwere under /cygdrive/. Try something like
$ net use t: /cygdrive/c/vboxsrv/v-root
For this error,
!) Give full rights to Shared folder at Host side using "sudo chmod 777 -R /home/username/Shared" (Shared is a folder name which we have to be shared.)
!!) Open Guest in Virtualbox, before accessing shared folder.: "Install Guest Additions" From Menu
!!!) Click START, Right click on Computer , Select "Map Network Drive"
!V) In that select any drive and bellow that type folder "\Yourhostipaddress\Shared". Bellow that select "connect with credential" (Yourhostipaddress is a HOST IP ADDRESS and Shared is Shared folder name at host side. )
V) Click On connect button. It will ask you host username and password.
Put **USERNAME** Properly like "**XXXXXXXX-PC**".
V!) It will map with shared drive successfully !!!!!!!!!!!!!!!!
If still getting error, Put comments bellow this.

SSH Client that has a GUI directory tree whose view synchronizes with current dir in Terminal?

I am looking for an SSH client with the following features:
A terminal/shell (text-only) interface.
A GUI with directory tree (like windows explorer).
The ability to keep these views in sync-- ie. when you enter the command cd .. in the terminal, the directory tree GUI will update its view, and navigate up one directory.
I know that several SSH clients exist with 1 and 2, such as winscp. However, I have never seen 3 in it or other clients.
Does anyone know of a SSH client with this ability to synchronize the view between the terminal session and the GUI?
WinSCP does do this.
If you use the SCP method (rather than FTP or SFTP) when connecting, you can open a terminal (from Commands > Open Terminal) and cd to your heart's content. When you close the terminal, the file view changes to where you left it.
Ok so its not instant... but all you have to do is close the terminal, see the new GUI, reopen with a shortcut (CTRL+T) and you have what you're looking for.

Resources