srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2022-12-04 22:12:23 +0200
committersrdusr <[email protected]>2022-12-04 22:12:23 +0200
commitf7db394cf032599de9cb54f93682f3be4091d96a (patch)
tree8f9d37b4778a3129065c8822b99da986cf43f964 /tools
parent570a73333079d2176d65b0a444992d7e49e2e5bf (diff)
downloadnotes-f7db394cf032599de9cb54f93682f3be4091d96a.tar.gz
notes-f7db394cf032599de9cb54f93682f3be4091d96a.zip
Fixed formatin
Diffstat (limited to 'tools')
-rw-r--r--tools/ssh.md48
1 files changed, 24 insertions, 24 deletions
diff --git a/tools/ssh.md b/tools/ssh.md
index 7288498..a02ee9a 100644
--- a/tools/ssh.md
+++ b/tools/ssh.md
@@ -1,34 +1,34 @@
-### ssh
-* Find out your username
-whoami
+### SSH (Secure Shell Protocol)
+* Find out your username
+`whoami`
-* Check ip address
-ifconfig
-nmcli -p device show
+* Check ip address
+`ifconfig`
+`nmcli -p device show`
-* Termux install openssh
-pkg in openssh
+* Termux install openssh
+`pkg in openssh`
-* Termux make sure user/root password is set
-passwd <user> # root does not need to be specified
+* Termux make sure user/root password is set
+`passwd <user> # root does not need to be specified`
-* Generate your ssh key pair on remote host machine, not on server machine
-ssh-keygen
+* Generate your ssh key pair on remote host machine, not on server machine
+`ssh-keygen`
-* Accessing termux user environment from other consoles
-scp [email protected]:~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
+* Accessing termux user environment from other consoles
+`scp [email protected]:~/.ssh/id_rsa.pub ~/.ssh/authorized_keys`
-* Second Option How do I add SSH Keys to authorized_keys file?
-cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
+* Second Option How do I add SSH Keys to authorized_keys file?
+`cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"`
-* Start server in machine that will ssh into
-sshd
+* Start server in machine that will ssh into
+`sshd`
-* Android remote host into desktop server, assuming default port 8022
-ssh [email protected] -p 8022
+* Android remote host into desktop server, assuming default port 8022
+`ssh [email protected] -p 8022`
-* Desktop remote host into android server, assuming default port 8022
+* Desktop remote host into android server, assuming default port 8022
-* To view the log output from the server process.
-logcat -s 'syslog:*'
+* To view the log output from the server process.
+`logcat -s 'syslog:*'`