Another way to solve the problem is to mount the remote server using
sshfs and then access it as a directory on your local computer. This
will require using the password once when you mount the server, but
you can just leave it mounted until you shut down your computer.
E.g.,
You have an empty di
Sorry about the double post, but this line:
Sharpie wrote:
>
> ssh u...@webserver.com -e "cd ~/.ssh;cat webKey.pub >> authorized_keys"
>
Should be:
ssh u...@webserver.com "cd ~/.ssh;cat webKey.pub >> authorized_keys"
I.e., omit the -e flag.
Apologies,
-Charlie
-
Charlie Sharpstee
afoo wrote:
>
> Hi,
>
> I am trying to SSH to a remote server through R script. In other words, I
> would like to know how I can get a SSH connection to the remote server and
> then execute commands on that server with the R script.
>
> So in bash, I would normally type ssh -lusername remotese
When I do what you're describing, I get prompted for my password:
> system('ssh -l usernm rmthost')
use...@rmthost's password:
After I enter my password, nothing seems to happen. But if I hit
ctrl-c then I get a command line prompt, and it turns out that it's a
shell prompt on the remo
You might try setting up ssh so that you do not need a password. See
man ssh-keygen
In essence, you make a key for the machine you are on with (for
example):
ssh -t dsa
which produces a public and a private key. You upload the public key
to remoteserver.com, and put it in your .ssh directory b
Hi,
I am trying to SSH to a remote server through R script. In other words, I
would like to know how I can get a SSH connection to the remote server and
then execute commands on that server with the R script.
So in bash, I would normally type ssh -lusername remoteserver.com; press
enter and then
6 matches
Mail list logo