0
votes
2answers
40 views

Environment variables are unavailable when running scripts over ssh

Suppose I have two hosts: A and B with users a and b. B is Windows machine with Cygwin installed, if this matters. B is configured to be accessed from A through SSH without password (it contains A's ...
0
votes
1answer
35 views

Saving SSL password for SVN in Ubuntu

I have tried to set up my SVN that way, that it saves my passwords, but for some reason it won't work. I am using a SSL certificate, for which I need to provide a password every time. I have tried ...
0
votes
2answers
65 views

SSH connection timed out

Every time I try to ssh into my computer from my chromebook $ssh -vvv user@***.**.***.*** I get the following output OpenSSH_5.2p1, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data ...
1
vote
2answers
97 views

SSH Tunnel or Reverse Tunnel

I'm trying to establish a SSH tunnel to allow VNC/ARD connections (ports 5900 and 3389). However I'm uncertain about a certain thing: Let's say machine A has IP 192.168.103.1 and has services running ...
0
votes
0answers
42 views

Write failed: Broken pipe even if I use ServerAliveInterval?

This is my ~/.ssh/config file - Host 10.2.1.1 ServerAliveInterval 120 ProxyCommand ssh 10.1.1.1 nc -w1 10.2.1.1 22 I've configured it so that I can bypass the jump server each time I need to ssh ...
0
votes
2answers
94 views

Logging ssh info using syslog-ng daemon in Cygwin

I have setup the syslog-ng daemon using Cygwin in Windows 7. What I want to do is to log all of the ssh failed passwords, etc to /var/log/sshd.log. I tried to do this by adding the following line: ...
0
votes
2answers
126 views

Terminal output being cut off

I'm using ZSH as my shell and running a Debian 7 installation on a Linode box. When I ssh into this box and run any command where the output is larger than the window, the output that extends beyond ...
11
votes
10answers
4k views

Best way to go about changing a root password on 3000+ Solaris, AIX, and Linux servers?

Long story short: Big old corporation, lots of UNIX/Linux servers. I inherited responsibility for a bunch of scripts that that left a few years ago. One of them was a script that would be run every ...
1
vote
1answer
120 views

SSH on FreeBSD 8.1 sshd is not running

After reading many pages of documentation and articles on how to telnet or SSH into FreeBSD as root, none have given me a solution that actually works. I am looking for a how-to-remote-into this ...
1
vote
0answers
172 views

Error sh: line 9: 19705: Memory fault (coredump) in case of OpenSSH installation

I downloaded openssh-6.1.p1/tar.gz with http://mirror.corbina.net/pub/OpenBSD/OpenSSH/portable/. I made at first ./configure, then make which, it seems, fulfilled without errors (Nexenta Illumos ...
1
vote
0answers
101 views

The steps to install service-network-ssh [closed]

My original goal was setup service-network-ssh on Nexenta Illumos. As a result of the command apt-get install service-network-ssh I got the following message Reading package lists... Building ...
0
votes
1answer
78 views

ssh remote execution always exits 127

quick question: I have a program that is spawning a process which executes a basic remote command over SSH such as: ssh aiden@host /bin/ps Running this manually from my shell is successful (as you ...
2
votes
2answers
721 views

Function keys over SSH/PuTTY to SCO unix

I am trying to set up SSH to a SCO Unix server that runs custom software that uses the function keys on the keyboard, however the keys do not appear to be in the correct format for SCO to recognise. ...
1
vote
1answer
84 views

Gitolite SSH URL Format

So I got gitolite set up. Simple. But there is one issue I am having. The SSH urls follow the format of git@host:repo. I'm used to Bitbucket / Github where the urls follow the format of ...
0
votes
1answer
348 views

Managing SSH keys for multiple users for multiple systems (ie github like ssh key ui)

So we are trying to lock down our systems to be accessed only by a few logical users (users on the Linux machines) but many physical users. That is all the developers can login as user dev with their ...
2
votes
2answers
155 views

Merge local SSH keys to work simultaneously

I have been using SSH alot. I find myself creating new keys when something fails, like for git, then I lose communication to my other servers. I know going forward there should only be one set of ...
0
votes
2answers
59 views

Can i use SSH key Authentication for logging into a server which share the ssh folder?

I have 2 server systems: remoteserver1 & remoteserver2. Remoteserver2 is protected from outside login so in order for me to access it, i have to ssh into remoteserver1 and then ssh into ...
0
votes
1answer
56 views

setting up history variables for ssh user

im logging into a particular ip using ssh user@ip then i type in a few commands, then i exit and when i relogin and type history, all the previous commands are gone. Now i understand i have to export ...
1
vote
1answer
141 views

Interactive shell based on SSH and UDP

I've heard from a friend about a client-server application which initializes on top of SSH connection but implements interactive shell over UDP protocol. It is specifically designed for bad quality ...
2
votes
2answers
398 views

unix ssh block ipaddress

I'm working on a unix server, sshing into the machine using plink or session.net (a C# module that opens an ssh connection to the server and runs commands). Everything was fine until we restarted the ...
13
votes
4answers
2k views

Can you have more than one ~/.ssh/config file?

We have a bastion server that we use to connect to multiple hosts, and our .ssh/config has grown to over a thousand lines (we have hundreds of hosts that we connect to). This is beginning to get a ...
2
votes
3answers
247 views

ssh but keep current working directory

I often want to ssh into a different server, but retain my working directory. (All our servers have the same NFS and thus the same directory path usually exists on all servers.) Is it possible to do ...
1
vote
3answers
116 views

Why is ``head`` hanging and not terminating?

I have a shell script that has to find the newest file on a remote host. I have this bit: ssh -q $HOSTNAME -t ls -t -1 /path/to/somewhere/ | head -n 1 It prints the first line, then waits and ...
10
votes
1answer
449 views

Can a very large /etc/hosts.deny slow down SSH connections?

I've been using denyhosts for a while and I noticed my /etc/hosts.deny is getting rather large. Denyhosts adds IPs to /etc/hosts.deny, and my denyhosts is configured to never purge IPs. $ wc -l ...
3
votes
3answers
804 views

How do I get ssh to run in the background without using -f?

I'm attempting to create an ssh tunnel, spin it off into a background process, and write a pid file which I can later use to kill it. I CAN run ssh with -f, but then I don't have a handle on its PID. ...
0
votes
2answers
216 views

ssh + along delay after typing the password between win to linux

I installed two Linux machines with Linux version - 5.5.1.0-01 Something is very strange if I perform ssh between Linux to Linux after I type the password I get the prompt of the second Linux machine ...
1
vote
1answer
774 views

SSH whitelist 2 addresses

We want to block all access to SSH, except for two IP addresses. One address is dynamic, it starts with 124.567.890.xxx where xxx is changing all the time. I read that you can do this by changing ...
0
votes
1answer
144 views

SFTP on Unix defaults to Key Authentication

This is probably a simple one for all you Unix whiz' out there, but I can't figure it out, so I am trying to sftp into a windows server from the command line, and the remote refuses connection. When I ...
1
vote
2answers
532 views

I can run a script locally, but cannot do “ssh HOSTNAME /path/to/script.sh”

I have a linux server, and a linux desktop. I have written the following simple script to dump the database of a django web application: #! /bin/bash set -o errexit cd $(dirname $0) . ...
4
votes
3answers
99 views

Putting server configurations in version control via SSH

I have a bunch of *nix servers in production. I would like to put it's important configuration files in version control The basic idea I had was to Put a distributted version control system so ...
6
votes
2answers
5k views

How to enable color in Vim over SSH?

I have two remote servers: Server 1: Linux 2.6.18-238.12.1.el5PAE i686 / VIM - Vi IMproved - version 7.0.237 Server 2: Linux 2.6.18-338.19.1.el5.lve0.8.36 x86_64 / VIM - Vi IMproved version 7.0.237 ...
1
vote
2answers
863 views

Passing scripts to ssh and invoking the shebang

I have scripts in several languages which I pipe to ssh to have them invoked on other hosts. For shell scripts I'm able to do this: ssh < /path/to/script.sh For scripts in other languages ...
3
votes
2answers
438 views

Custom error message for sshd

Is it possible to set a custom error message for users denied to access a server? In fact, I'd like to only display this message if a user was rejected due to IP filter set in sshd_config. But one ...
3
votes
2answers
774 views

Automatically-reconnecting TCP tunnel

I have an unreliable network connection between two machines: sometimes active TCP connections get dropped for reasons beyond my control. I want to establish a reliable TCP connection between the two ...
1
vote
2answers
139 views

Is it possible to SSH a remote server using 2 different private keys for same user?

___ ___ | | (connecting using "hxsr") | | | A | -----------------------------> P1 | B | |___| -----------------------------> P2 ...
1
vote
1answer
476 views

SSH accepts publickey authetication but won't connect with an identify file?

Problem I recently switched to a new web server. I had been using identify files with SSH to connect on the previous server with no problems, but on the new server I can't seem to use an identify ...
3
votes
2answers
1k views

ssh still accepts password authentication despite being configured for public-key only authentication (which works!)

I have configured an Ubuntu 10.04LTS desktop install to only allow public key authentication. RESULT: public key authentication works perfectly! QUESTION: The problem is that despite being ...
0
votes
1answer
508 views

how to setup SSH user with limit permission?

There are some sites provide SSH accounts only for ssh tunnel. I want to know how to make sure these accounts can only have permission to do tunnel, and how to do limit settings. And I also notice ...
1
vote
1answer
366 views

Via ssh, git-checkout into directory the user doesn't own: “Permission denied”

Using git push server I push to a remote bare git-repository via ssh. The git-repository on the server has a post-receive hook which runs git checkout -f in /var/www/vhosts/domain.com/preview (working ...
0
votes
2answers
188 views

Linux: Where are non-interactive commands logged?

As far as I know, when I SSH to a box, it will add my command history to something like .bash_history. But when I execute a command like rsync and it executes a remote SSH connection, rsync -avz -e ...
9
votes
8answers
15k views

Why can't I ssh into my new EC2 Instance?

I created a new instance (tiny, 64 bit AMI linux from Amazon) Created a new key pair called "mir". I downloaded mir.pem and put it in my ~/.ssh folder. I even did ssh-add mir.pem. Then I tried to ...
0
votes
1answer
444 views

Nested hosts with scp?

I need a way of copying a file through nested servers, as in localhost$ ssh user@host1 host1$ ssh host2 where host2 is on an off-site intranet and not directly accessible. Is there a way of using ...
5
votes
3answers
746 views

long SSH password vs SSH Keys

Using amazon's EC2 Service, which is awesome in every regard. Only problem is, I have problems logging in with the SSH keys they automatically genarate. I have no idea what the problem is, but have ...
2
votes
2answers
164 views

tunnel ssh for a mysql connection

I need to do an ssh tunnel to connect to a mysql server. if i do : me@local> mysql -h host -u user -p pwd I get a 100 error I have an ssh account on a distant server and this command works : ...
1
vote
4answers
4k views

How do I connect to a server behind an socks5 proxy through SSH on mac/linux?

I am using the ssh to try to connect to a server behind on remote network. That server is behind a socks5 proxy on the same network. The port of the proxy server is 1080 and the ssh port is 22. ...
0
votes
2answers
725 views

Passwordless ssh from Windows to Linux to run scripts from command prompt

What am trying here is ..... I Have some scripts that needs to run in Windows Command (command.exe) and not from Cygwin. The scripts needs to access a specific Linux machine from Windows command ...
1
vote
5answers
492 views

Ubuntu server: manually changed /etc/passwd shell for my user, now can't login

I attempted to change shell from bash to tcsh via editing /etc/passwd file directly. Yeah, dumb move. I guess I've learned my lesson. Now I can't SSH into the remote server. Any way to fix this? PS. ...
1
vote
1answer
411 views

SSH: Execute different shell based on public key used

I want to allow ssh access to a specific account, but if I connect using a specific puclic key, I should be dropped to a full shell, otherwise to a restricted one. Example: I connect with ssh to ...
0
votes
2answers
1k views

Execute ssh command without password?

I execute the following command: ssh -l admin hostname command Each time I execute it, I am asked to enter a password. How can I automatically provide it with a password since I am going to put ...
4
votes
5answers
1k views

Skip over intermediate server via SSH

I just got hired to work in a lab with a big 'ol linux cluster. I'm a mac/windows guy, so I'm still trying to figure out how to navigate around using a 'nix command line. So far I haven't run into any ...