ssh

What is the size (in bytes) of an SSH login request?

What is the size (in bytes) of an SSH login request? In fact I just want to know what is the size of the login SSH request when it is send from the client to the SSH server. For a bandwidth point of view. If it is a regular user/password login. ...

Can R read from a file through an ssh connection?

R can read files on a web server using convenient syntax such as data <- read.delim("http://remoteserver.com/file.dat") I wonder if there is a way to do something similar with a file on an ssh server with passwordless-ssh already in place? ...

Originate edit of remote file using emacs tramp from ssh session

This is probably a somewhat out-of-wack question. I use tramp to edit remote files, but I also open several terminals ssh-ing to that remote machine as well for other works (I had problems running ssh shell inside emacs). Often times during the terminal work I would like to edit some file, and my current procedure is to copy the file n...

retrieve SSH unique session ID

I wonder if there is any way to retrieve, for both a server and a client connected through ssh (OpenSSH), some unique session identifier (let this be USID). This would be used to restrict the execution of a specific (custom) software (let it be a.exe), so it can only be executed through a specific ssh session, even if other users (poten...

sftp with mutual auth using apache vfs

We're trying to sftp to a server that requires mutual authentication. We need to do this programmatically in java. Is there a way to use mutual authentication (client certificates) with apache vfs when connecting to an SSH server? ...

Bash script to setup a temporary SSH tunnel.

On CYGWIN, I want a BASH script to: create an SSH tunnel to a remote server. Do some work locally that uses the tunnel. Then shutdown the tunnel. The "shutdown part" has me perplexed. Currently, I have a lame solution. In one shell I run the following to create a tunnel. # Create the tunnel - this works! It runs forever, until sh...

Does anyone know a SSH/ SFTP/ FTP wrapper around pfsockopen()??

Does anyone know a SSH/ SFTP/ FTP wrapper class around pfsockopen();?? I'm still on my quest to keep persistent connections in PHP. ...

"ssh example.com" hangs but "ssh example.com bash -i" does not

Hello, everyday I encounter a very strange phenomenon. From my university internet connection, sshing to my machine ("ssh example.com") works without any problems. From my home adsl, "ssh example.com" my console gets stuck with this message: debug1: Server accepts key: pkalg ssh-rsa blen 533 debug1: Enabling compression at level 6....

How do I use TortoiseSVN for this? It doesn't work.

svn co svn+ssh://174.13.24.17/home/svn/dragon-repos/ That's how I check out on my linux box. I would like to checkout on my Windows machine. But, Tortoise SVN asks me for the "URL" (I don't have a URL...I just do it like that, above) Can't I just run the command line to check out, like that? ...

How do I emulate keyboard-interactive ssh login with paramiko?

I'm trying to automate a ssh connection and control of a network device, that for some reason, only allows keyboard-interactive authentication. It doesn't appear that paramiko supports this by default or with the standard sshclient() object. I've spent the past couple of days going through the paramiko documentation trying to figure th...

Do I use phing locale or remote?

I have a question related to phing. Do I use it on my local development machine to deploy an application or do I call it via ssh from production machine? I'm not sure where to do the steps from Eran Galperin (What is your preferred PHP deployment strategy). I'm a beginner with deployment scripts. So be forgiving :) Marco ...

Sad story - git+ssh+ruby

Problem: i need to verify git repo properties (ssh key,repo url) in ruby solutions: 1) write ssh key into ~/.ssh/id_rsa file and execute git clone command with repo url property - easiest way cause race conditions when multiple users trying to check theirs repos. 2) write key into any file and link server and key in ssh.config file...

How to restrict a user to access only specific folders

Hi, I have an Ubuntu server installed and I need to give access to my client's sites hosted on my server. There are currently 2 sites, which means 2 folders. I was able to create a user with the command: adduser user However, I cannot find a way how to restrict this user to view only specific folders. If you tell me at least how to ...

Connecting to SSH via PHP's exec() function.

I am currently trying to figure out how to connect to another server via SSH using PHP's shell functions. I have a site where I have to pass data from PHP to a custom command line program, then return the output. On the old server I was using, this was possible via the exec() function: $cmd = '/path/to/custom/program "arg1", "arg2", "ar...

SSH Port forwarding causes local browser to lose port qualifier ?

We've set up port forwarding so that our users can access the web server on server foo through a SSH tunnel. The port forwarding causes requests to 999 on the local machine to be forwarded to port 80. On their own machine they open the SSH tunnell and then enter into their local browser ... http://localhost:999/d/a.html ... on their ...

Remotely restart a linux service from local Windows or Mac machines

Sometimes my media server does not update its database, the only way to fix it is to restart the daemon. I would like users to be able to simply run an executable or script to do so without revealing any login information to them (which might result in inadvertent headaches). I feel the easiest way to do this would be to have an exec...

Remotely run command in local X session?

I have an HTPC (with an HDTV as the monitor) running Ubuntu Karmic, and various other computers in the house. Sometimes I want to run X11 applications (usually, but not always, XBMC) on the HTPC displayed on the HDTV, but I don't want to have to physically go to the HTPC to do so; I want to do so from another computer in the house. If I...

How do I access a WebService through an SSH tunnel?

Hi all! Got a question. I'm sitting on a closed network, and I need access to a WebService out in the DMZ. The WebService is made available through a non-80 TCP port (let's call it 1234), which is blocked by the firewall of the closed network. I do, however, have SSH access to a server in the DMZ (let's call that one 'dmzhost'), so I t...

setting up git ssh access error: gitosis need more than 1 value to unpack

When I go to set up git to run with ssh, I get the following error: file "usr/lib/python2.5/site-packages/gitosis-0.2-py2.5.egg/gitosis/init.py", line 35, in ssh_extract_user _, user = pubkey.rsplit(None, 1) ValueError: need more than 1 value to unpack the command I typed: sudo -H -u git gitosis-init < /home/sean/.ssh/pubkey.pub ...

Using remote version control (VCS) commands on the local filesystem without a VCS client

Supposing I have two machines setup: Client Let's assume a windows box Let's assume this is a dev box, so all of the files to be put under source control will be here Let's assume no source control installed here Server Let's assume a linux box Let's assume Git is the source control of choice (installed) SSH enabled Question: Is...