-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy path3.Document-ssh-pkgs.txt
23 lines (18 loc) · 1.05 KB
/
3.Document-ssh-pkgs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Basic ssh command to run commands on remote server:
ssh -t -o StrictHostKeyChecking=No [email protected] "date"
----------------------------
Using sshpass (providing password for ssh):
sshpass -p "automation@123" ssh -t -o StrictHostKeyChecking=No [email protected] "date"
or
sshpass -f path_for_password_file ssh -t -o StrictHostKeyChecking=No [email protected] "date"
or
export SSHPASS="automation@123"
sshpass -e ssh -t -o StrictHostKeyChecking=No [email protected] "date"
===========================================================================================================
Amazon Linux EPEL:
cd /opt
wget -r --no-parent -A 'epel-release-*.rpm' http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/
yum install dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm
RHEL8 EPEL:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
============================================================================================================