Shell Script to run commands on remote servers | ssh -t & -T option | ssh basic key based auth setup

preview_player
Показать описание
Hello guys , this video is about creating a shell script that can be used to run commands on remote servers. I started with explaining the basic setup for ssh key based authentiction. This is needed to ensure that we can connect to remote servers without any prompt for password. After that , I pointed out the .hushlogin file usage that can be used to remove messages while login to ssh. Next , I created a basic shell script to run the commands in remote servers . At end , I explained the meaning of -t and -T option in ssh that are used for allocation of pseudo terminal and to disable pseudo terminal allocation with some examples.
Topics covered in this video are :
- shell script to run commands on remote servers
- basic ssh setup for key based authentication to remote servers
- ssh -t and -T optons
- ssh login to remote servers
- disable message on login with ssh
- .hushlogin file in linux
- ssh command in shell scripting
#ssh #remote #servers #shell #script
__________________________________________________________
🌻 Support me with 🌻:

__________________________________________________________
👀 Connect with me on 👀 :

Рекомендации по теме
Комментарии
Автор

Hi lecturer, Thanks for your video. I really learn something from you.

kelvintan
Автор

Hi, Vicky Thank you so much for this video, Also I want to write the config file which I'll define as per the list of servers. I don't know in which way I can give the hosts info in the configuration file and then my shell script will login to each server using loop and read a specific file. Can you make a video to create the configuration file in all the ways?

gouravsaini
Автор

When we type top as one of the commands to be passed to ssh in here document, despite using -t and -T, why is it not working?

pravi
Автор

It helped me alot.

How I can pass variable to remote server script.!

mahadeoraut
Автор

If the server having password then how can we proceed..

simantachoudhury
Автор

Which machine does the script need to be on? the host or the servers?

thanoswasright