diff --git a/Development/Git/Github/README.md b/Development/Git/Github/README.md index 857ed49..34ec696 100644 --- a/Development/Git/Github/README.md +++ b/Development/Git/Github/README.md @@ -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 diff --git a/Development/Git/README.md b/Development/Git/README.md index 7d0175a..53ab459 100644 --- a/Development/Git/README.md +++ b/Development/Git/README.md @@ -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 diff --git a/Server/SSH/README.md b/Server/SSH/README.md new file mode 100644 index 0000000..d50cb4f --- /dev/null +++ b/Server/SSH/README.md @@ -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