What's mysql_safe
A daemon to monitor mysqld process.
When executing /etc/init.d/mysql start, mysqld is running in mysql_safe
This blog moved to medium->https://medium.com/@cocoamaemae
Regarding TIPS about IT technologies or OSS which I created.
Wednesday, January 6, 2016
Tuesday, January 5, 2016
Linux ssh management
Brief
Surmise ssh management on Linux
How to create a ssh key pair
execute ssh-keygen command and then $HOME/.ssh directory and $HOME/.ssh/id_rsa and $HOME/.ssh/id_rsa.pub are created automatically by default.
# .ssh folder permission
chmod 700 $HOME/.ssh
chmod 600 $HOME/.ssh/id_rsa
How to add a public key on a ssh server
# add a public key
cat <public key file> >> ~/.ssh/authorized_keys
# change permission
chmod 600 ~/.ssh/authorized_keys
# If from is used, the access origin can be limited
e.g.
from="xxxx.xxxx.xxxx.xxx",no-pty ssh-rsa ***
How to configure ssh authentication
// Modify /etc/ssh/sshd_config and comment out the blow portions.
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFils .ssh/authorized_keys
// To make a password authentication off
PasswordAuthentication no
After modified, restart sshd
Surmise ssh management on Linux
How to create a ssh key pair
execute ssh-keygen command and then $HOME/.ssh directory and $HOME/.ssh/id_rsa and $HOME/.ssh/id_rsa.pub are created automatically by default.
# .ssh folder permission
chmod 700 $HOME/.ssh
chmod 600 $HOME/.ssh/id_rsa
How to add a public key on a ssh server
# add a public key
cat <public key file> >> ~/.ssh/authorized_keys
# change permission
chmod 600 ~/.ssh/authorized_keys
# If from is used, the access origin can be limited
e.g.
from="xxxx.xxxx.xxxx.xxx",no-pty ssh-rsa ***
How to configure ssh authentication
// Modify /etc/ssh/sshd_config and comment out the blow portions.
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFils .ssh/authorized_keys
// To make a password authentication off
PasswordAuthentication no
After modified, restart sshd
Subscribe to:
Posts (Atom)
Front End Development Tools
TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...
-
What is partitioning? The structure which divides one table data to multiple data. When not using partitioning, one table data is aggrega...
-
It is general to create multiple branches and manage them parallel when we do the development by using git. Multiple branches should be mer...
-
What's URL encode? URL can be sent only ASCII characters over internet. When doing http request with query parameters, query parameter...