Hi,
I want to execute shell script with in sftp session for remote server.
like i have a shell script test.sh that is on local server.i want to execute that script on remote server
sftp user@192.168.56.10
sftp> test.sh ---execute for remote server not for local server.
sftp oracle@192.168.56.101 << EOF
cd /home/ibney
test.sh # i want to execute this shell script on
I want to execute shell script with in sftp session for remote server.
like i have a shell script test.sh that is on local server.i want to execute like
Code:
sftp user@192.168.56.10
sftp> test.sh ---execute for remote server not for local server.
Please help me for this issue
Imagine a shell script on the remote server as
#!/bin/bash
rm /test.x
How can I (if possible) to execute this script from my local machine to delete /test.x file on my local machine.
Hi,
I was provided with sftp servername, user and password and the requirement is to connect to sftp server using credentials provided and drop the file.
Manually i am able to connect with commands like
sftp user@servername
and after clicking enter, i was asked for a password and entering the password i am able to get it the remote server.
How can i do the same using scripts i.e when i execute
I am trying to restrict an ssh-user to execute unwanted commands using ssh(commands send along with ssh command) from a remote host. So for that I am using the forced command in the authorized_keys file that will allow the ssh-user to only execute a particular command.
If I did not set this, I am able to login via ssh and sftp.
Hi,
I am trying to restrict an ssh-user to execute unwanted commands using ssh from a remote host a. So for that I am using the forced command in the authorized_keys file that will allow the ssh-user to only execute a particular command.
If I did not set this, I am able to login via ssh and sftp.
Hi to all!
I'm new to unix and I looking for a solution for a shell I'm developing.
In this shell I have a list of filename (get from a database).
For each filename I must connect to another server via sftp connection in order to verify if there is a file with that filename.
After the filename, I must check also the modified date of the file on the remote server, to choose If get the file or
I have a script (test.sh) on a local server, which when I execute with terminal works fine. The script removes a directory and creates a directory local. Then it connects to a remote server using "ssh -i $private_key .." and copies a file there.
When I execute this script in jenkins with
sh test.sh
it doesnt work. Im getting the following errors:
rm: .. Permission denied
mkdir: ..
How can I run a script to log into a remote server and execute a remote ssh command without entering in my passphrase?
For example:
When I log onto a remote server and execute the git pull command I see ssh prompt me for my passphrase:
$ git pull origin master
Enter passphrase for /home/v3ed2/.ssh/id_rsa:
Once I enter my passphrase I continue with the command.
I want to run a script that wil