ssh, github, git
This commit is contained in:
parent
6fb6b491e2
commit
b800d6babf
@ -5,7 +5,7 @@ GitHub is a cloud-based platform for hosting Git repositories, enabling version
|
||||
## Linking
|
||||
|
||||
- To link your **latest repository release** you should use this url format: **https://github.com/octo-org/octo-repo/releases/latest**
|
||||
- To download **binary/application** file from latest release use [https://github.com/*octo-org/octo-repo*/releases/latest/download/*octo-app.tar.gz*](https://github.com/octo-org/octo-repo/releases/latest/download/octo-app.tar.gz)
|
||||
- To download **binary/application** file from latest release use [https://github.com/**octo-org/octo-repo**/releases/latest/download/**octo-app.tar.gz**](https://github.com/octo-org/octo-repo/releases/latest/download/octo-app.tar.gz)
|
||||
|
||||
## Github-CLI
|
||||
|
||||
|
||||
@ -2,5 +2,7 @@
|
||||
|
||||
## Add new commit
|
||||
|
||||
- `git add README.md` - add file to repository
|
||||
- `git add README.md` - add file/s to repository
|
||||
- `git commit -m "first commit"` - commit file
|
||||
|
||||
## Remote repository push
|
||||
|
||||
60
Server/SSH/README.md
Normal file
60
Server/SSH/README.md
Normal file
@ -0,0 +1,60 @@
|
||||
# SSH
|
||||
|
||||
## Installation and setup
|
||||
|
||||
- Start ssh service with `sudo service ssh start`
|
||||
|
||||
- Configuration file for ssh server is at `/etc/ssh/sshd_config`
|
||||
- Configuration file for ssh client is at `/etc/ssh/ssh_config`
|
||||
|
||||
## Authorization using keys
|
||||
|
||||
- Create a keys on your client using command `ssh-keygen -t ed25519 -C "comment"`
|
||||
- Then copy key to the server with `ssh-copy-id -i ~/.ssh/[key]` [username]@[server]
|
||||
|
||||
## Configuration
|
||||
|
||||
Example of Server Configuration:
|
||||
|
||||
```
|
||||
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
|
||||
|
||||
# This is the sshd server system-wide configuration file. See
|
||||
# sshd_config(5) for more information.
|
||||
|
||||
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||
|
||||
# The strategy used for options in the default sshd_config shipped with
|
||||
# OpenSSH is to specify options with their default value where
|
||||
# possible, but leave them commented. Uncommented options override the
|
||||
# default value.
|
||||
|
||||
Include /etc/ssh/sshd_config.d/*.conf
|
||||
|
||||
#Port 22
|
||||
#AddressFamily any
|
||||
#ListenAddress 0.0.0.0
|
||||
#ListenAddress ::
|
||||
|
||||
#HostKey /etc/ssh/ssh_host_rsa_key
|
||||
#HostKey /etc/ssh/ssh_host_ecdsa_key
|
||||
#HostKey /etc/ssh/ssh_host_ed25519_key
|
||||
|
||||
# Ciphers and keying
|
||||
#RekeyLimit default none
|
||||
|
||||
# Logging
|
||||
#SyslogFacility AUTH
|
||||
#LogLevel INFO
|
||||
|
||||
# Authentication:
|
||||
|
||||
#LoginGraceTime 2m
|
||||
#PermitRootLogin prohibit-password
|
||||
#StrictModes yes
|
||||
#MaxAuthTries 6
|
||||
#MaxSessions 10
|
||||
...
|
||||
```
|
||||
|
||||
## SSH port forwarding
|
||||
Loading…
Reference in New Issue
Block a user