Friday, July 17, 2020

Linux SSH

*Be sure to turn off firewall or configure 22 to ssh on Linux.
SSH should be easy to set up but sometimes it is a pain.
 More Detail Here
Here is a bunch of good commands.
https://devconnected.com/how-to-install-and-enable-ssh-server-on-debian-10/

sudo apt-get install openssh-server


Now use 
... Putty
...... WinSCP
......... Or Windows 10 terminal "ssh ip address of Linux" I know, it's crazy.


/etc/init.d/ssh start
/etc/init.d/ssh stop
/etc/init.d/ssh restart

service ssh start
service ssh stop
service ssh restart

systemd
systemctl start ssh
systemctl stop ssh
systemctl restart ssh
systemctl enable ssh

Compare Hash With Powershell

Insert actual values over the ( ) locations. Remove the ( ) Place it all in a hash.ps1 file and run.  $h='(put hash here)';$f="...