I need to make a shell script that when run on my local machine make ssh access by the common user on the server, but then manage to change the user to root.

Completed Posted 3 years ago Paid on delivery
Completed Paid on delivery

I need to make a shell script that when run on my local machine make ssh access by the common user on the server, but then manage to change the user to root.

1) The server does not allow root access in ssh

2) I also don't want to use sudo

3) the closest I got was the command: ssh -t -t common-user@server-ip "su root -s -ppassword"

4) authentication on the remote server by the common user is already done by the authentication keys, no password required

5) no problem the password is written in the script

Shell Script Linux System Admin Script Install Debian

Project ID: #26954481

About the project

3 proposals Remote project Active 3 years ago

Awarded to:

gargya8

Hi, I am an experienced Linux server administrator, I can create shell script for you that will make ssh connection to server with common user and then it will become root. Looking forward to work with you. Regards More

$30 USD in 1 day
(0 Reviews)
0.0

3 freelancers are bidding on average $100 for this job

osmanbsd

Not possible in shell script but possible in Perl script. If you are interested we can discuss details. Regards usman

$50 USD in 1 day
(147 Reviews)
7.4
mohjib092

Hello there, Expert here, Sir i have read your project description and i can provide you quality work on time Can you please come to the chat box so we can easily discuss about project details.. Thankk you

$220 USD in 1 day
(5 Reviews)
3.9