Hello guys,
I want to be able to execute openssh with some custom arguments and then be able to automatically login to the server. I want that my script will enter the password if needed and inject 'yes' if I'm prompted to add the fingerprint to the known hosts.
I've found SharpSsh for C# that do that, but I also need to use -D parame...
Here is the scenario
I am trying to get scp access to server3, but there is only public ssh access to server 1. To ssh to server3, I have to ssh to server1, ssh to server2, then ssh to server3.
My hopeful end result would be that I could WinSCP to localhost:8022 and it will give me file access to server3.
I am trying to use ssh tunnel...
Trying to write a Java program capable of running a UNIX command as a different UNIX user. I have the user's password, and I know the command I want to run, but the command has to be run as that user - so I have to login as that user first.
For example: say we have a user, jim, who wants to see what's in bob's home directory, and (for w...
I'm trying to connect from a Windows XP system to an SVN server but I'm getting weird behavior.
When I run this...
svn ls svn+ssh://[email protected]/path/to/svn_repository
...the cursor just freezes as if it's a long-running process with no output.
I've tried the above in both a Windows console and a MINGW32 console.
I can pin...
Hi,
I have what is probably a very simple terminal related question.
I'm running Ubuntu 8.10 Intrepid Ibex, using Gnome, and I often open a terminal-based
ssh session only to have it dropped at some point later on. Once the session is dropped the
terminal becomes unusable, obviously because the network connection has been dropped.
...
I'm using ant-jsch-1.6.5 and jsch-0.1.41 and groovy-1.6.3 (which uses ant-1.7.1)
new AntBuilder().sequential{
def user = "user", pass = "pass", host = "host"
echo "echo 1"
sshexec(
host:host ,username:user, password:pass, verbose:true, trust:true ,
command:"touch 1.txt"
)
echo "echo 2"
sshexec(
...
Hi,
I'm trying to use git on windows to clone a remote repository. I can clone it on my mac fine but on windows I get a problem.
WHen using git bash to clone, I get a message saying the server's host key is not cached in the registry. It asks me to preess y or n to trust the host.
THe problem is that if I press y or n nothing happens....
i want to run some command on several machine using ssh. I know it can be done by just using the command "ssh user@hostname command". However, the command i want to run print some string on the console. Is there any way that send all the strings back to the console that i'm on?
...
How do I copy all files inside /directory/subfolder to /directory using SSH?
PS. I'm not going from 1 server to another, I'm just trying copy the files in the subfolder to update the site...
...
I want to run a script remotely. But the system doesn't recognize the path. It complains that "no such file or directory "Am i using it right?
ssh kev@server1 `./test/foo.sh`
...
I am trying to launch in the background a job on a remote machine and get its PID so that I can kill it later on. What I have come up with so far is the following:
#!/bin/bash
IP=xxx.xxx.xxx.xx
REMOTE_EXEC="ssh $IP -l root"
# The following does NOT work, I am trying to get the PID of the remote job
PID=`$REMOTE_EXEC 'vmstat 1 1000 > v...
I accidentally deleted the user 'postgres' user the #userdel command and no longer have access to the database.
What can I do to create a new postgres user and how can I start postgresql again?
If I have to re-install postgresql, do I just delete my current postgres setup by removing the /usr/local/postgresql-8.3.6/ directory?
NOTE: I...
I'm using SSHExec ant task to connect to a remote host and I depend on the environment variables that are set on the remote host in order to be able to successfully execute some commands.
<sshexec host="somehost"
username="${username}"
password="${password}"
command="set"/>
Using the task the env. variables that are output...
Screen is amazing, of course, but I don't want to have to think about it. I often ssh to a machine, start doing a bunch of stuff, and then think "gosh, I wish I had thought to start a screen session before doing all that so I could reconnect to this from home later".
I'd like to have screen automatically started whenever I log in to a ...
I have a windows 2003 box with an ssh server setup. I have msysgit (git version 1.6.2) installed both locally and on the server.
The server has the following absolute path to my repos:
e:\vc\git\myrepo.git
when a user logs in he/she will be put in the following working directory:
e:\vc\git\
When running the following cmd on my de...
I'm trying to get emacs tramp running under Windows XP to work over putty plink on an Amazon EC2 instance. The documentation for doing this is sparse. I can find partial documentation, but none that addresses all the steps required to get this working.
Can anyone provide a walk through, or a pointer to a walk through?
...
I'm encountering some strange behavior so I'm hoping someone can help shed some light on this. When I do a git push, it ends with a "fatal: The remote end hung up unexpectedly" but checking the git logs and the remote repo seems to indicate the push went through fine. Rerunning the git push returns "Everything is up to date".
So a littl...
My host allows limited access to SSH and Linux commands. However, I can't use Wget believe it or not.
I was hoping for something to download a file (.flv) from another server. Is there another command I can try?
If there isn't, I could probably make use of Python, Perl or PHP (favourite) to achieve a file download. Is it possible?
...
Background: I was editing a file in vim using putty over ssh. In order to copy a huge section of text to the file from windows, I just used the standard putty paste command.
Now, whenever I edit a file in vim using putty over ssh, the syntax coloring is gone, and it is all replaced with a single-color yellow.
Question: Has anyone else...
I'm trying to start perfmon and another program that have GUI's through a python script that uses a PKA ssh connection. Is it possible to do this? If so could anyone point me in the right direction?
...