I'm trying to run a command over ssh with jsch, but jsch has virtually no documentation and the examples I've found via google are terrible. For example, this one doesn't show code for handling the output stream. And, this one using an ugly hack to know when to stop reading from the output stream.
...
How can I use ssh & scp from the Windows cmd.exe? I remember I installed a program in the past that let me do this but can't remember now what it was. (I don't mean putty)
...
Playing with the ssh and public_key application in Erlang, I've discovered a nice feature.
I was trying to connect to my running Erlang SSH daemon by using a rsa key, but the authentication was failing and I was prompted for a password.
After some debugging and tracing (and a couple of coffees), I've realized that, for some weird reaso...
I'm trying to pass a variable through a ssh connection, like this:
working_dir="/home/user/some_dir/"
ssh $USER@some_host 'qsub $working_dir/some_file.txt'
The connection itself is established, but this code gives me the following error:
working_dir: Undefined variable.
This could be explained, by the fact that the remote machine do...
Is there a way I can use NSTask to ssh into another computer (in this case a chumby) and run commands on that device? I also have a password on it.
...
Hej,
I runned a Fedora instance in Amazon EC2. I can access and work on it perfectly by Putty.
I also set Seconds between keepalives to 1 for not losing the connection due to inactivy (I mean in Putty).
Nevertheless, if a network/electric failure happens in my local computer, it shuts down the Putty connection, so the session logs off...
I've changed ssh port number from 22 to 2222
The previous setup connection to default ssh port 22 is fine
I've Mapped the NAT on the router correctly
When i try debug it
ssh -v -p2222 www.example.com
I get this error hanging
debug1: SSH2_MSG_KEXINIT
Below is all debug log
bob@server:~$ ssh -v -p2222 www.example.com
OpenSSH_4.7p1...
Hi guys,
I'm working on Ubuntu and want to use multiple private keys to connect to different servers or different portions of the same server (My uses are admin of server, admin of git, and normal git usage within the same server). I tried simply stacking the keys in the id_rsa files to no avail.
Apparently the way to do this is use t...
I installed 1.7.0.2 on Windows 7 and didn't see an option to choose the Git's ssh or Plink for the secure client. How do I set this? Does the environment variable GIT_SSH still work?
...
I'm working through some inital setup of a dev environment for Facebook trying to use Facebooker and its SSH tunnel to expose my dev site. I’m having a lot of trouble with the SSH tunnel. I’ve made sure port 4007 is open and my SSH config contains both GatewayPorts yes and GatewayPorts clientspecified.
I can connect to the tunnel OK on ...
I did:
~$ mkdir projectname
~$ cd projectname
~$ git init
~$ touch file1
~$ git add file1
~$ git commit -m 'first commit'
So... Is there any git command to create a new remote repo and push my commit to GitHub from here? I know it´s no big deal to just fire up a browser and head over to Create a New Repository but if there is a way to...
I need a way to obtain a local (not WAN) address of an incoming telnet or ssh
session using a shell script or C.
...
I'm trying to setup a Git server on Windows 7, using CopSsh, PuTTY and msysgit. I'm having problems cloning a repository using ssh.
If I use a regular directory path, it works:
$ git clone ~/vc/git/depot/test.git/ /c/dev/es/app
Initialized empty Git repository in c:/dev/es/app/.git/
warning: You appear to have cloned an empty reposito...
Afternoon all,
I'm having a small problem with the SharpSSH library for .Net
(see http://www.tamirgal.com/blog/page/SharpSSH.aspx)
SshStream ssh = new SshStream("some ip address", "some username", "some password");
ssh.Prompt = "\n";
ssh.RemoveTerminalEmulationCharacters = true;
ssh.Write("s...
I have a custom shell script that runs each time a user logs in or identity is assumed, its been placed in /etc/profile.d and performs some basic env variable operations. Recently I added some code so that if screen is running it will reattach it without needing me to type anything. There are some problems however. If I log-in as root...
Hi there,
I have to VPN and then ssh from home to my work server and want to run a python script in the background, then log out of the ssh session. My script makes several histogram plots using matplotlib, and as long as I keep the connection open everything is fine, but if I log out I keep getting an error message in the log file I cre...
I have suddenly run into an issue using git.
I created a new app, went to push to Heroku and now see:
ssh: connect to host heroku.com port 22: Connection refused
My other previously working Heroku apps no longer work, receiving the same error.
Other Heroku commands work (create, info, db:push).
I also see the error when accessing Gi...
I've got Hudson (continuous integration system) with the git plugin running on a Tomcat Windows Service. msysgit is installed and the msysgit bin dir is in the path. PuTTY/Pageant/plink are installed and msysgit is configured to use them.
When I run a job that attempts to clone the git repository I get the following error:
$ git clone...
Hi Folks, I'll try my best to explain how I'm trying to set up this system.
Imagine a production server running WHM with various sites. We'll call these sites... site1, site2, site2
Now, with the WHM setup, each site has a user/group defined for them, we'll keep these users/groups called site1,site2 for simplicity reasons.
Now, updati...
Hey I have run into the following problem when attempting to build a program in java which executes commands on a remote linux server and returns the output for processing...
Basically I have installed Cygwin with an SSH client and want to do the following:
Open Cygwin,
Send command "user@ip";
Return output;
Send command "password";...