ssh

exiting script while running source scriptname over SSH

I have a script with a number of options in it one of the option sets is supposed to change the directory and then exit the script however running over ssh with the source to get it to change in the parent it exits SSH is there another way to do this so that it does not exit? my script is in the /usr/sbin directory. ...

Multiple connections in a single SSH SOCKS 5 Proxy

Hey guys, My fist question here on Stackoverflow: What should I need to do so that the SSH SOCKS 5 Proxy (SSH2) will allow multiple connections? What I have noticed, is that when I load a page in Firefox (already configured to use the SOCKS 5 proxy), it loads everything one by one. It can be perceived by bare eyes, and I also confirm t...

Open Python shell through SSH

I'm using this tool to set up a ssh server on Windows. I'm trying to open the standard Python shell through a remote ssh connection but I simply can't get it to work. If I type 'python' in my ssh command line nothing happens, it just seems to wait for more input. My server machine however, shows a new python process running after I do th...

Is it possible to write a javascript SSH client that uses web sockets for transport?

Would it be possible to write a basic SSH client in pure javascript using something like orbited web sockets as the transport layer? I don't see any examples of this, but it seems like it would be a nice thing to have. ...

Is there any way to get the date modified from Net::SSH or NET::SFTP commands in ruby?

Hi there, Is there an easy way to get the date modified of a file by using Net::SFTP? It'd be nice to be able to do this: Net::SFTP.start('some_server') do |sftp| sftp.dir.glob('*').each do |file| puts file.mtime end end But that's not possible (to my knowledge). Berns. ...

How to automate rsync without asking for password prompt

i would like to automate the rsync task as a cron job.. since it needs the passphrase i am not able to do the cronjob. i need to specify the passphrase along with the rsync command or i will store the passphrase in a file and i will read from it. my command will look like this.. rsync -aPe "ssh -i ' . $server->{'ssh_key'} . '" ' . $serv...

Access Samba Drive over SSH

Hello, I am trying to access a samba drive over ssh. I have a windows machine with a samba drive to connect to my linux vm drive, I also run cygwin on the windows machine. What I am trying to do is from my linux vm ssh into the windows cygwin side and cd into the samba drive which connects back into my linux directory. When I am in cyg...

How to get Hudson CI to check out CVS projects over SSH?

I have my Hudson CI server setup. I have a CVS repo that I can only checkout stuff via ssh. But I see no way to convince Hudson to check out via ssh. I tried all sorts of options when supplying my connection string. Has anyone done this? I gotta think it has been done. ...

Why does Fabric display the disconnect from server message for almost 2 minutes?

Fabric displays Disconnecting from username@server... done. for almost 2 minutes prior to showing a new command prompt whenever I issue a fab command. This problem exists when using Fabric commands issued to both an internal server and a Rackspace cloud server. Below I've included the auth.log from the server, and I didn't see anything ...

How to Avoid Maven builds stall on ssh host authenticity problem?

What's the right way to keep ssh host authenticity from being a problem for maven and hudsno builds? I have hudson building my maven project on a VM. When the ESX server with my VMs on it is taxed some of my jobs will stall out stuck in a loop of ssh host authenticity problems. The hosts were in the known hosts file, but during these...

Real-time aggregation of files from multiple machines to one

I need a tool which gets a list of machine names and file wildcards. Then it connects to all these machines (SSH) and begins to monitor changes (appendings to the end) in each file matched by wildcards. New lines in each such file are saved to the local machine to the file with the same name. (This is a task of real-time log files colle...

PHP / SquidGuard / SSH2_EXEC : file creation error

Hello and thanks to read me. I've got a problem with the creation of a squidGuard.conf file. I'm using php in order to create a conf file. This one is well created and his content is right. But when squid try to use it, it find an error. The problem is the fact that there is no error. If i open the file with VI, delete an empty line a...

SSH into Specified Directory by Default?

By default, when SSH'ing into a client I am automatically placed into /home/marco/ but instead I would like to be placed into /something/other. I would prefer to keep my home directory where it is, but I would like to be automatically routed to /something/other/ Is this possible? *The client runs Debian 5.04 ...

Python stdout, \r progress bar and sshd with Putty not updating regularly

I have a dead simple progress "bar" using something like the following: import sys from time import sleep current = 0 limit = 50 while current <= limit: sys.stdout.write('\rSynced %s/%s orders' % (current, limit)) current_order += 1 sleep(1) Works fine, except over ssh with Putty. Putty only updates every 3 minutes or if ...

How to unload all the plugins from vim and change VIMRUNTIME ?

Hello my problem is this: I have an account at my hosting providers server and I can't install my own copy of vim. So the only personalization I can make is editing .vimrc in my account, but it won't suffice What I'd Like to do is: on startup I'd like to unload all the plugins and loaded stuff, and tell vim to use other folder as its' r...

Convert Attachmate Extra visual basic script from Telnet to SSH

I am facing a situation where an Attachmate Extra visual basic script which has worked with Telnet needs to be concerted to SSH. The current Telnet implementation uses a "Telnet specific" edp file. The code which references the EDP is here: Set oExtraBanner = oExtraSystem.Sessions.Open("myTelnet.edp") Set oExtraScreen=oExtraBanner....

Is it possible to do have Capistrano do a checkout over a reverse SSH tunnel?

I am developing an application that resides on a public host but whose source I must keep in a Git repository behind a corporate firewall. I'm getting very tired of the slowness of deploying via scp (copying the whole repository and shipping it over SSH on each deploy) and would like to have the remote host simply do a git pull to update...

Can Maven Wagon plugin use a private key for scp?

Can Maven Wagon plugin be configured to use a private key for ssh/scp? Everything I've tried still leaves maven to ask me for a password when it gets to the point of scp-ing. ...

To stop returning through SSH using Pexpect

Hello, I am trying to use pexpect to ssh into a computer but I do not want to return back to the original computer. The code I have is: #!/usr/bin/python2.6 import pexpect, os def ssh(): # Logs into computer through SSH ssh_newkey = 'Are you sure you want to continue connecting' # my ssh command line p=pexpect.spawn(...

GIT: clone works, remote push doesn't. Remote repository over copssh.

Hi all, I've "setup-a-msysgit-server-with-copssh-on-windows", following Tim Davis' guide and I was now learning how to use the git commands, following Jason Meridth's guide, and I have managed to get everything working fine, but now I can't pass the push command. I have set the server and the client on the same machine (for now), win7-...