#1. Find out which init system your Linux uses
init --version
#2. Find out your IP on the local network. You will need IP, user name, and password.
ifconfig (depricated and may not work because "net-tools" is not installed)
use this instead
> > > ip a
On Windows use WinSCP to access the Linux server (I use portables via Symenu)
Terminal commands vary depending on if systemd or SysVinit. (Or some variation thereof)
Most all Linux versions have ssh service included. Verify by doing this.
ssh -V (check if installed)
The server is likely not installed so install it.
sudo apt install openssh-server -y
Verify if the service is running
sudo service ssh status
This is how to start the service
sudo service ssh start
or
sudo service ssh restart
Edit sudo nano /etc/ssh/ssh_config file and not the sshd_config (if it exists)
remove # on port 22
remove # on PasswordAuthentication yes
Check if server is running
ps aux | grep sshd
Check is server is listening on port 22
telnet localhost 22
***From here down needs editing. Maybe next time I set up a systemd.
... Start SSH
- In systemd
sudo systemctl start ssh
sudo systemctl start sshd (In arch)
... Check to see if enabled
sudo systemctl is-enabled ssh
sudo systemctl is-enabled sshd (In arch)
or
- In SysVinit (SystemV)
(check linux ip ifconfig)
Edit sudo nano /etc/ssh/ssh_config file and not the sshd_config
remove # on port 22
remove # on PasswordAuthentication yes
sudo systemctl restart sshd
sudo systemctl status sshd
use Putty and/or WinSCP
ssh_config should look like this
check ip a
In WinSCP the connection is SCP not SSH
Obviously you use keys outside a closed network.
Should be able to install through apt-get
eg. sudo apt-get install hardinfo
Notes:
Update
sudo pacman -Syysudo
sudo pacman -Su
Find ip use "ip a"
ip route list
or install Nutty
Root file access in Manjaro
sudo thunar
OpenSSH on Arch
(Why care? Setting up VB using SSH in Windows for ease copy paste commands.)
sudo pacman -S openssh
sudo systemctl status sshd.service
sudo nano /etc/ssh/sshd.config
sudo systemctl enable sshd.service
sudo systemctl start sshd.service
(stop, restart, etc.)
On VM use bridged adapter for useful IP
... Then Putty on Windows should have access to (user-name@IP)
Good Links for ssh
https://linuxhint.com/ssh_virtualbox_guest/
http://www.tuxfixer.com/configure-ssh-service-in-manjaro-linux/
https://www.christitus.com/ssh-guide/
eg. sudo apt-get install hardinfo
Notes:
Update
sudo pacman -Syysudo
sudo pacman -Su
Find ip use "ip a"
ip route list
or install Nutty
Root file access in Manjaro
sudo thunar
OpenSSH on Arch
(Why care? Setting up VB using SSH in Windows for ease copy paste commands.)
sudo pacman -S openssh
sudo systemctl status sshd.service
sudo nano /etc/ssh/sshd.config
sudo systemctl enable sshd.service
sudo systemctl start sshd.service
(stop, restart, etc.)
On VM use bridged adapter for useful IP
Good Links for ssh
https://linuxhint.com/ssh_virtualbox_guest/
http://www.tuxfixer.com/configure-ssh-service-in-manjaro-linux/
https://www.christitus.com/ssh-guide/
MX Linux does not use systemd so the systemctl commands don't work.
I have no idea how to restart ssd or do commands that use systemctl.
Commands
...This is one of the irritating things about Linux. Answers found online are often for a version you are not using. For instance alias
HowToGeek explains alias cls=clear
This is great but to make it survive a closed terminal he says add the command to the
...
.bash_aliases
file
,,, but in Mint the file is /home/george/.bashrc
The List
alias
ps