more than my life
This commit is contained in:
@@ -76,6 +76,8 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
RestartSec=3600
|
||||||
ExecStart=sh /Scripts/ssh.sh
|
ExecStart=sh /Scripts/ssh.sh
|
||||||
User=saret
|
User=saret
|
||||||
|
|
||||||
@@ -85,7 +87,9 @@ EOF
|
|||||||
sudo chmod a+x /etc/systemd/system/RunSSH.service
|
sudo chmod a+x /etc/systemd/system/RunSSH.service
|
||||||
sudo mkdir /Scripts
|
sudo mkdir /Scripts
|
||||||
sudo tee /Scripts/ssh.sh <<EOF
|
sudo tee /Scripts/ssh.sh <<EOF
|
||||||
ssh saret@ssh-j.com -N -R libre-computer:22:localhost:22
|
if [[ "$(ps -x |grep saret@ssh |awk '{print $9}')" != *"libre-computer:22:localhost:22"* ]]; then
|
||||||
|
ssh saret@ssh-j.com -N -R libre-computer:22:localhost:22
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
sudo chmod a+x /Scripts/ssh.sh
|
sudo chmod a+x /Scripts/ssh.sh
|
||||||
sudo tee /etc/systemd/system/GoogleDrive.service <<EOF
|
sudo tee /etc/systemd/system/GoogleDrive.service <<EOF
|
||||||
@@ -123,6 +127,8 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
RestartSec=3600
|
||||||
ExecStart=sh /Scripts/ssh.sh
|
ExecStart=sh /Scripts/ssh.sh
|
||||||
User=saret
|
User=saret
|
||||||
|
|
||||||
@@ -132,7 +138,9 @@ EOF
|
|||||||
sudo chmod a+x /etc/systemd/system/RunSSH.service
|
sudo chmod a+x /etc/systemd/system/RunSSH.service
|
||||||
sudo mkdir /Scripts
|
sudo mkdir /Scripts
|
||||||
sudo tee /Scripts/ssh.sh <<EOF
|
sudo tee /Scripts/ssh.sh <<EOF
|
||||||
ssh saret@ssh-j.com -N -R libre-computer:22:localhost:22
|
if [[ "$(ps -x |grep saret@ssh |awk '{print $9}')" != *"libre-computer:22:localhost:22"* ]]; then
|
||||||
|
ssh saret@ssh-j.com -N -R libre-computer:22:localhost:22
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
cat <<EOF >> .zshrc
|
cat <<EOF >> .zshrc
|
||||||
#My alias
|
#My alias
|
||||||
|
Reference in New Issue
Block a user