$ vim cat .ssh/config
Host github.com
HostName github.com
IdentityFile ~/.ssh/github_id_rsa
User username
$ sudo -u jenkins ssh -T [email protected]
Hi username! You've successfully authenticated, but GitHub does not provide shell access.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -fsSL https://mackerel.io/file/script/amznlinux/setup-yum.sh | sh | |
| sudo cp /etc/mackerel-agent/mackerel-agent.conf.rpmsave /etc/mackerel-agent/mackerel-agent.conf | |
| sudo yum clean all | |
| sudo yum install -y mackerel-agent mackerel-agent-plugins mackerel-check-plugins mkr | |
| sudo /sbin/service mackerel-agent start |
# app
GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO app@'10.255.0.0/255.255.0.0' IDENTIFIED BY 'password'
# operator
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, REFERENCES ON *.* TO operator@'%' IDENTIFIED BY 'password'
# viewer
GRANT SELECT ON *.* TO viewer@'%' IDENTIFIED BY 'password'$ openssl req -new -key server.key -out hoge.csr -sha256
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git src/net/file_unix.go src/net/file_unix.go | |
| index 5b24c7d..9e581fc 100644 | |
| --- src/net/file_unix.go | |
| +++ src/net/file_unix.go | |
| @@ -91,7 +91,7 @@ func fileListener(f *os.File) (Listener, error) { | |
| case *TCPAddr: | |
| return &TCPListener{fd}, nil | |
| case *UnixAddr: | |
| - return &UnixListener{fd, laddr.Name}, nil | |
| + return &UnixListener{fd: fd, path: laddr.Name, unlink: false}, nil |
ssh -f -N -C -L 43306:mysql:3306 ssh-user@bastioncurl --unix-socket /path/to/app.sock localhost/api/endpoint