netgear
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1,diffie-hellman-group14-sha1 -oHostKeyAlgorithms=+ssh-rsa root@<ip>
admin login rejects after connect. Use admin on 6.0 and later units
--30--
sudo apt update sudo apt install openssh-server sudo systemctl enable ssh --now sudo nano /etc/ssh/sshd_configPort 2222, PasswordAuthentication no, PubkeyAuthentication yes). sudo service ssh restart2222 with your chosen SSH port if you changed it in sshd_config: $wsl_ip = (wsl hostname -I).trim()
netsh interface portproxy add v4tov4 listenport=2222 listenaddress=0.0.0.0 connectport=2222 connectaddress=$wsl_ipscp user@example.com:web/tmp/Master\\\ File\\\ 18\\\ 10\\\ 13.xls .
scp root@vmnu1:/vmfs/volumes/datastore1/Ubuntu\\\ 16.04/* Ubuntu\ 16.04/
#mount src esxi file system
sshfs root@aaa.bbb.ccc:/vmfs/volumes/ mnt/sshfs/
src="mnt/sshfs/"
vmd="Storage_vmfs5/vm1-data"
#mount dst esxi file system
sshfs root@xxx.yyy.zzz:/datastore-vms/ mnt/tmp/
dst="mnt/tmp/"
#copy vm files
rsync -av --progress --stats --delete --force "$src$vmd" "$dst"
#unmount
fusermount -u $src; fusermount -u $dst
fdisk -l whatever.img. The output should include a table like this:Device Boot Start End Blocks Id System
whatever.img1 8192 122879 57344 c W95 FAT32 (LBA)
whatever.img2 122880 5785599 2831360 83 Linux
These are the two partitions. The first one is labelled "FAT32", and
the other one "Linux". Above this table, there's some other information
about the device as a whole, including:Units: sectors of 1 * 512 = 512 bytes
We can find the offset in bytes by multiplying this unit size by the Start block of the partition:offset option of the mount command. We also have a clue about the type of each partition from fdisk. So, presuming we have directories /mnt/img/one and /mnt/img/two available as mount points:mount -v -o offset=4194304 -t vfat whatever.img /mnt/img/one
mount -v -o offset=62914560 -t ext4 whatever.img /mnt/img/two
If you get an "overlapping loop" error here, your version of mount
requires you to specify the size as well as the offset of the first
partition. Unmount that, and use the number of blocks (57344) * 512 (=
29360128):mount -v -o offset=4194304,sizelimit=29360128 \
-t vfat whatever.img /mnt/img/one
The second partition doesn't need a sizelimit since there's nothing after it in the image. -r (read-only) switch too. If you do change anything, those changes will be included in the .img file./boot in the second partition when the system is running.regedit /e "%userprofile%\desktop\putty-registry.reg" HKEY_CURRENT_USER\Software\Simontatham
The "manufacturer is "Simontatham" and is the same on all machines.cmd.exe, require elevated prompt:regedit /e "%USERPROFILE%\Desktop\putty-sessions.reg" HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions
All settings:regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham
reg export HKCU\Software\SimonTatham\PuTTY\Sessions ([Environment]::GetFolderPath("Desktop") + "\putty-sessions.reg")
All settings:reg export HKCU\Software\SimonTatham ([Environment]::GetFolderPath("Desktop") + "\putty.reg")
*.reg file and accept the import.cmd.exe, require elevated command prompt:regedit /i putty-sessions.reg
regedit /i putty.reg
reg import putty-sessions.reg
reg import putty.reg
SimonTatham with your username.reg file on the Desktop of the current user.