After we've installed cygwin and openssh-server on our host machine we can configure automatic ssh connection with private and public keys for fast connection without passwords.
On your host machine:
1. Open cygwin shell.
2. Run commands:
3. Edit /etc/sshd_config: uncomment and change PasswordAuthentication to No.
On your server machine:
1. For generating keys we will use putty. On your server machine download and unpack full putty package.
2. Run PUTTYGEN.EXE file. Click button Generate and make some mouse moves for random effect. If you want to connect to host machine without password, do not fill fields &...
There could be situations when you should copy files or block device to another system via network. There are a few methods to do it.
1. Copy files with ssh:
scp -r /home/user/testdir /etc/init.d/my_init_file email@example.com:
-r means recursively copy directories
First part of command is what exactly we copy (files and dirs), second is where we copy. Two points after ip address means that we want to copy to home dir of user.
2. Copy block device with netcat:
on server where copy:
nc -l -p 5555 | dd of=/dev/sdc
Firstly, execute this command on remote machine that netcat open socket and listen. -l opt...