I want to connect to a remote server and execute some commands, how can I achieve this?



I want to connect to a remote server and execute some commands, how can I achieve this?..

Answer / Varsha Sangal

To connect to a remote server and execute commands, you can use SSH (Secure Shell). Make sure the remote server has an SSH server installed. Then, run the command `ssh username@remote_server_ip 'command'`. For example: `ssh user@example.com 'ls -l'`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What is a command line shell?

1 Answers  


how can you execute the shell scripts?

4 Answers  


What are the different variables present in linux shell?

1 Answers  


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

1 Answers  


When you login to a c shell, which script would be run first?

2 Answers  


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

1 Answers  


Hi, I want to practise Unix korn shell scripting which i learnt 2 yr bfr. plz suggest software i can use to practise.

1 Answers  


What does echo mean in scripting?

1 Answers  


What is the way to do multilevel if-else's in shell scripting?

1 Answers  


How will you pass and access arguments to a script in linux?

1 Answers  


What is meant by $1 in shell script?

1 Answers  


What are types of shells?

1 Answers  


Categories