ssh

Secure file transfers

We are using a custom FTP application (which encrypts the files) for secure transfers. We send the application to end users and they use it to send us confidential data. We also use it to send information back to the end users. The application is in need of an update - some things are no longer working consistently. As the end users ...

Automate SSH without using public key authentication or expect(1)

Is there a way to pass a password to ssh automatically. I would like to automatically ssh to a server without using public key authentication or expect scripts, by somehow getting ssh to read the password from stdin or a file. The reason it has to be that way is that I would like to backup my files to a server using rsync/ssh running as...

Is it possible to compile libCurl with SSH support using vc8?

I am working on an application, implemented in VC++ 2008 that needs to use sftp through libCurl. In order for this to happen, libCurl needs to be built with ssh support. The problem is that, unlike the mingw makefile, the makefile for vc8 does not have target configurations to build with SSH support. Does anyone know what needs to be ...

How do you see the STDOUT of a child process in the calling parent process in csh script

I am calling a csh script that the first thing it does is starts a new group. I need to be able to see the standard output from the child process that is executed after the fork. I also want the parent process to 'hang' unitl the child process is finished. Here is the script (razor_from_cgwin.sh). (sort of) newgrp name source /stuf...

Linux: Prevent a background process from being stopped after closing SSH client

I'm working on a linux machine through SSH (Putty). I need to leave a process running during the night, so I thought I could do that by starting the process in background (with an ampersand at the end of the command) and redirecting stdout to a file. To my surprise, that doesn't work. As soon as I close the Putty window, the process is s...

SSH hangs on Mac Book Pro; AFS and Network Preferences?

I am having an issue with SSH hanging on my Mac Book Pro. This only happens to me once I get home from work after I have used SSH while at work. The three factors I have narrowed the issue down to are SSH, our work AFS network drive and the method of network connectivity. At work we use an AFS drive with Kerberos Authentication to do al...

How do I execute a command every time after ssh'ing from one machine to another?

How do I execute a command every time after ssh'ing from one machine to another? e.g ssh mymachine stty erase ^H I'd rather just have "stty erase ^H" execute every time after my ssh connection completes. This command can't simply go into my .zshrc file. i.e. for local sessions, I can't run the command (it screws up my keybindings)....

How Do I Copy Up To An SSH Host All Folders and Files Except Certain Ones?

Using the Linux command line, I use the scp command to copy up all the files and folders from a certain directory. However, I don't like to consume wasted bandwidth for copying up things I rarely change like my tiny_mce folder. What's the trick to copy up everything but skip a short list of folders? ...

JavaScript (or JS+PHP) Terminal Client

Does anyone know of a JS-based terminal client? Either something that initiates an SSH connection with a remote host or even something that simply communicates with a remote PHP script to execute commands and retrieve output. Does such a thing exist? ...

how to use ssh to run shell script on a remote machine?

Hi, could you please suggest me how to run a shell script on remote machine? I have ssh configured on both machine A and B. My script is on machine A which will perform a task on machine B. Awaiting response! Will be great help for me. Regards, Arun ...

Connect to a MySQL server over SSH in PHP

I'd like to establish an ssh tunnel over ssh to my mysql server. Ideally I'd return a mysqli db pointer just like I was connecting directly. I'm on a shared host that doesn't have the SSH2 libraries but I might be able to get them installed locally using PECL. If there's a way that uses native commands that would be great. I was thin...

How do you open an SSH Tunnel from a Windows client as a background program?

I would like a Win machine to tunnel into an SSH server whenever the machine starts up. I also want the win machine to reboot the SSH program if it ever crashes. The lighterweight & more stable the SSH program, the more happier I am. What options do I have with this? ...

OS X run rsync under sudo using ssh_config

I want to set up an automatic rsync job to backup a bunch of user accounts on my OS X machine to a linux fileserver. I have set up password-free ssh from my account to another machine, and it works great, so I tried using this command: sudo rsync -avz /Users/jbloggs myserv:/var/Backup/ where myserv is an alias set up in my ~/.ssh/conf...

SSH Password/User problem with Cygwin sshd service

hello I just set up SSHd through Cygwin on a Windows XP Pro box overseas using a RAT and discluded the openssh package from the install. I ran the cywin shell (from c:\cywin) and ran Now, It's under a port I know is safe and fowarded properly, but I won't share it's number. It's not a common port, but it's under 40000. Firewalls are off ...

How to make ssh to kill remote process when I interrupt ssh itself?

In a bash script I execute a command on a remote machine through ssh. If user breaks the script by pressing Ctrl+C it only stops the script - not even ssh client. Moreover even if I kill ssh client the remote command is still running... How can make bash to kill local ssh client and remote command invocation on Crtl+c? A simple script:...

Can't connect to VirtualBox guest through NAT -- connection was closed

Host system is Vista, guest named BoxInABox is Debian lenny. The guest is configured in VirtualBox settings to use NAT. To set up port forwarding for ssh into the guest, I followed the directions at this link: http://mydebian.blogdns.org/?p=148. On the host I did: vboxmanage setextradata BoxInABox "VBoxInternal/Devices/pcnet/0/LUN#0/...

Are there any good ssh consoles for Eclipse?

Hello: I'm looking for a good ssh console plugin for Eclipse, and can't find much at all. Would anyone have some good leads on one? ...

How to wean myself from FTP in favor of Version Control

I have heard that uploading your website with FTP is now for n00bs, but it's the only way I've known how for the 8 or so years I've been building websites. Apparently all the buzz now is using a version control system, like SVN or Git, and somehow using SSH to upload only the files that have changed (if I understand correctly). I'm won...

multi tabbed SSH client using screen

Is there an SSH client that can present a client side GUI interface to the screen* program? I'm thinking of an SSH program that would hook in with screen's session handling and map client side actions (clicking on a tab, ctrl-tab, scrolling, possibly even allowing several tabs to be seen at the same time) to whatever it takes to make sc...

Transferring files over SSH

I'm SSHing into a remote server on the command line, and trying to copy a directory onto my local machine with the "scp" command, but the remove server gives back this "usage" message: [Stewart:console/ebooks/discostat] jmm% scp -p ./styles/ usage: scp [-1246BCEpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [...