Install OpenSSH server on Ubuntu Desktop/Server
sudo apt-get install openssh-server
sudo apt-get install openssh-client
::Start/Stop/Status/Restart of ssh service:-
To get status of ssh service
sudo service ssh status
To start ssh service
sudo service ssh start
To stop ssh service
sudo service ssh stop
To restart ssh service
sudo service ssh restart
::Configuring Key Pair -
ssh-keygen -t rsa
ssh-copy-id user@ip_address
sudo gedit /etc/ssh/sshd_config
::How to connect ssh---------------------------------------------------
ssh <username>@<computer name or IP address>
For example:
ssh joe@laptop
or:
ssh mike@192.168.1.1
Logout ssh session
exit or CtrlD
::enable ssh root access on Ubuntu 14.04
Simply adding a password for root is not enough for Ubuntu 14.04 Server.
You need to edit /etc/ssh/sshd_config, and commend out the following line:
PermitRootLogin without-password
Just below it, add the following line:
PermitRootLogin yes
Then restart SSH:
service ssh restart
sudo apt-get install openssh-server
sudo apt-get install openssh-client
::Start/Stop/Status/Restart of ssh service:-
To get status of ssh service
sudo service ssh status
To start ssh service
sudo service ssh start
To stop ssh service
sudo service ssh stop
To restart ssh service
sudo service ssh restart
::Configuring Key Pair -
ssh-keygen -t rsa
ssh-copy-id user@ip_address
sudo gedit /etc/ssh/sshd_config
::How to connect ssh---------------------------------------------------
ssh <username>@<computer name or IP address>
For example:
ssh joe@laptop
or:
ssh mike@192.168.1.1
Logout ssh session
exit or CtrlD
::enable ssh root access on Ubuntu 14.04
Simply adding a password for root is not enough for Ubuntu 14.04 Server.
You need to edit /etc/ssh/sshd_config, and commend out the following line:
PermitRootLogin without-password
Just below it, add the following line:
PermitRootLogin yes
Then restart SSH:
service ssh restart
Send messages between 2 Ubuntu PCs (Net Send Style)
login in ssh user
and when you're logged in, type:
export DISPLAY=:0.0
notify-send "Title of message" "message text"
and hit enter
0 comments:
Post a Comment