SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

0
votes
4answers
455 views

What is the proper way to automate SSH/local command?

I have gitolite on a Centos 5.5 box - when a repository is updated, I need to send a command to my bug tracking appliance to get the new commands. Right now, I have the following command working: ssh ...
4
votes
1answer
702 views

controlling a process from a different session

So, I ssh into my remote computer and launch a process... time passes... my ssh session breaks. I log in again, and of course, I don't have access to the original process now. I can see it still if I ...
0
votes
1answer
315 views

Endlessly stuck in SSH login loop?

I've got a weird issue. Every time I hit Ctrl+D or use logout or exit, I see Connection to remote.host.com closed and then I am immediately logged back in: Last login: Thu Oct 6 21:04:20 2011 from ...
3
votes
2answers
1k views

Bash prompt keeps disappearing

I have a weird issue where my Bash prompt often completely disappears on a backspace. Doesn't make any sense to me, but it happens often: I can't really think of why this is happening. Am I ...
1
vote
2answers
236 views

ssh into folder

Is there a simple unix command to SSH into a folder? I'd like to make my aliases doing that extra step for me! Feeling dense. Does this just not exist? ssh username@mydomain.com:/var/www/mysite
20
votes
2answers
3k views

SSH output isn't line buffered?

I'm running a script on a remote machine like this: ssh $host "pip install -r /path/to/requirements.txt" But the output isn't line buffered; instead of seeing one line returned at a time, all the ...
3
votes
4answers
225 views

Internet SSH Server Security Considerations

What steps should I take to reasonably secure my linux desktop before opening sshd to the Internet so I can connect from anywhere?
2
votes
1answer
567 views

How to disable SSLv2 in OpenSSH?

Due to the recent deprecation of SSLv2, is it possible to disable SSLv2 in OpenSSH? Is OpenSSH even using SSLv2? From digging around, I see the sshd is not compiled against openssl , but it is ...
13
votes
8answers
1k views

How can we limit the impact of ssh probes?

My webserver is constantly attacked by various IP addresses. They try five passwords and then change the IP address. I have done various lockdowns like using ssh-keys and not permitting passwords, ...
1
vote
1answer
1k views

Difference in file listing for SSH and SFTP [closed]

I have SSH access to a server and I have never bothered to use SFTP until now. I transferred a file using FileZilla to the server. However, the weird thing is that the file doesn't show up when I ...
6
votes
4answers
17k views

ssh Connection refused: how to troubleshoot?

I'm trying: $ ssh eric@myserver where myserver is a machine in the intranet. I can ping myserver or respond to HTTP on port 8080, etc, but when I try ssh, I get ssh: connect to host myserver port ...
7
votes
1answer
449 views

self-recovering ssh tunnel over non-100% connection

I want to setup permanent ssh-tunnel for port forwarding to machine behind firewall. The connection is between university network (very reliable) and commercial microwave metropolitan connection to a ...
2
votes
1answer
261 views

Matlab R2010a over ssh -X displays empty windows

I'm trying to use Matlab R2010a over ssh, with X forwarding. Now the X forwarding certainly works (for example xclock displays nice and fast) But when invoking matlab, I get the splash screen ok, ...
21
votes
4answers
14k views

How to speed up X over SSH on a slow network connection?

Are there any specific recommendations on speeding up X applications over ssh on a slow network connection? In this specific case, I am accessing a server located in west coast from a laptop in east ...
2
votes
3answers
6k views

What is pageant for Linux? Saving SSH private key passwords

I want the computer like pageant, to show a SSH password prompt during boot time. I have my private keys stored in a Dropbox between 3 computers of which 1 is now Ubuntu. I have googled for 2 hours ...
7
votes
3answers
14k views

ssh, start a specific shell, and run a command on the remote machine?

I am in a situation where several users are sharing the same user account on a remote machine. I have a "personal" directory where I wrote my own .zshrc file, and I would like to have a way to: ...
1
vote
1answer
357 views

Asking rsync to transfer files without connecting to the remote rsync server?

If I understand correctly, rsync tries to connect to a remote rsync server when transferring files via -e ssh. This worked well for me most of the time, but I am having problems rsyncing with a ...
0
votes
2answers
557 views

Files uploaded as root to the web server can't be overwritten by web application

Here is my problem. I am developing a web application in PHP/MySQL and I am having some problems setting up the accounts I need to use. Development workstation: WinXP SP3, Eclipse PDT Development ...
4
votes
1answer
2k views

How do I recover/kill an SSH session after losing connection?

I lost my connection while I was logged via SSH into my university server. Classic. Now I can't log in since the session appears to be still running and I get the error "Too many logins for ...
7
votes
3answers
22k views

How to make putty to not break my session after some time?

Each time putty is breaking session after some time if I am doing nothing. There is no any time parameter on putty so how can I stay my putty ssh session always Alive ?
2
votes
2answers
84 views

Connecting to a machine which is behind a university gateway

I have a username and password to connect to a remote machine which is behind a university gateway (using ssh). However, I don't have a username and password to connect to the gateway itself. I ...
0
votes
3answers
5k views

How to copy files from linux to windows using winscp from a folder which contains millions of files

I need to copy files from a linux machine to a windows machine where the only ports which can be open are for SSH (22). I can connect to the linux machine using WinSCP but the problem is once I try to ...
6
votes
4answers
2k views

How to debug SSH port forwarding

This is an extension to ssh port forward to access my home machine from anywhere I tried things mentioned there but I am not able to ssh to my machine. Netgear router settings for port forwarding: ...
3
votes
1answer
2k views

User logged in by sftp does not show up in `w`

My server is Centos 5. I have a chroot environment set up with the following in my sshd_config Match group sftponly ForceCommand internal-sftp ChrootDirectory %h AllowTcpForwarding no ...
3
votes
2answers
2k views

SSH tunnel to router periodically hangs. TCP problem?

Something weird I've noticed since upgrading my office router to the Buffalo WZR-HP-G300NH. When I remote in using an SSH tunnel, the tunnel will "freeze" pretty often. The freeze lasts 1-2 minutes ...
0
votes
2answers
1k views

Unable to connect to host via ssh

I have problem connecting to host via ssh. It prompts me this error : debianbox@debian:~$ssh cdcharles@hephaistos.rsr.lip6.fr ssh_exchange_identification : Connection closed by remote host The ...
4
votes
1answer
264 views

Emacs ansi-term and term not working well when I ssh into a remote machine

I have the exact same Emacs configuration on a local and remote machine, and when I run M-x ansi-term or M-x term on each of them individually everything works great. However, if I run any of these ...
2
votes
1answer
188 views

Why can I still log in via SSH (PAM Auth) while `shutdown -k` is active?

Pretty straight-forward. Does SSH ignore the nologin file created by shutdown -k TIME? Using PAM Auth to sync password database to users; if that makes a difference.
3
votes
1answer
3k views

Compress a directory using tar/gz over SSH to local computer?

I'd like to essentially tar/gz a directory on a remote machine and save the file to my local computer without having to connect back into my local machine from the remote one. Is there a way to do ...
6
votes
4answers
370 views

SSH “sleeping” for a long time before connect? [duplicate]

Possible Duplicate: How to speed my too-slow ssh login? I have a very strange issue with my SSH server. Whenever I attempt to connect, it literally waits about 30 seconds to a minute before ...
5
votes
4answers
11k views

Set some firewall ports to only accept local network connections?

Basic firewall question: How do I set up the firewall on a system in a LAN so that some ports are only open to connections from the local area network, and not from the outside world? For instance, ...
4
votes
1answer
887 views

Use different authentication methods for OpenSSH server depending on client IP

I'm sure this has been answered before, but I could not locate the answer with Google, and this search. I currently only allow shared key authentication for openssh server on my box. However, I ...
1
vote
2answers
179 views

Multiple Unix Sessions

Is there any way I can open multiple Unix sessions on different servers at the same time? I don't want to use ssh, as I want to monitor the CPUs of all those servers at the same time, which will keep ...
4
votes
5answers
429 views

What should I do with a remote AIX machine if I accidentally “chmod 644”-ed the “/usr/bin/ksh”?

Now the machine asks for password...The ssh was configured with key auth.. The problem is that ksh doesn't has executable permission anymore.. :\ What can I do remotely? Any tips? The root's shell ...
2
votes
1answer
128 views

Suddenly changing users [closed]

Has anyone ever encountered a scenario where you are logged into a system going about your standard business, cat, ls, tail, grep, vim, find etc. and suddenly permissions to regular things stop ...
7
votes
2answers
5k views

ssh port forward to access my home machine from anywhere

http://serverfault.com/questions/303937/how-to-make-freebsd-box-accessible-from-internet I want to understand this whole process of port forwarding. I read so many things but failing to understand ...
4
votes
1answer
280 views

Reverse ip lookup

I was wondering if it is somehow possible to lookup the ip of a machine I ssh'd into from. This is the scenario, I'm at home, I've VPN'd into a server that I ssh into constantly in the office but now ...
1
vote
1answer
166 views

How to “set” this home network mesh up

I don't know much about networking security other than keeping unused ports closed is good. This is what I'm trying to accomplish: I need to be able to keep my server (the dotted line) with limited ...
1
vote
1answer
96 views

If I SSH into a remote machine and my connection gets dropped, then is there a chance that the run I made will continue on?

Or will the run halt along with everything (though maybe partial progress could be made if I use a ">" to print progress so far to a file)
1
vote
2answers
8k views

SSH tunnelling with multiple dynamic port forwardings

I am trying to monitor multiple JVMs running on different servers through an ssh tunnel. Thanks to one of the UNIX gurus here, I have managed to get this running for a single server by: Run jstatd ...
3
votes
1answer
2k views

How to kill a command started over SSH - the SSH connection lost

If I use timeout 10 ssh -n -o BatchMode=yes 1.1.1.1 'sleep 20' > 1.1.1.1.txt 2>&1 & To give out a remote command on a server, and I kill the SSH connection after 10 seconds, then I ...
9
votes
9answers
12k views

Automatically run commands over SSH on many servers

There is a list of IP addresses in a .txt file, ex.: 1.1.1.1 2.2.2.2 3.3.3.3 Behind every IP address there is a server, and on every server there is an sshd running on port 22. Not every server is ...
4
votes
2answers
694 views

Prevent tmux from starting up on SSH

I would like tmux to create a new-window when I ssh onto a machine from an existing tmux session. However, I do not want a tmux session started on the new machine! I have the following in my .bashrc, ...
4
votes
2answers
4k views

Can ssh return directory list?

I have ssh access to other Suse box and I want to list particular directory on the suse box. It will be done from other suse box. I will run this from php later on. Is something like that possible?
12
votes
3answers
7k views

Answer yes in a bash script

I'm trying to do a git clone trough a bash script, but the first time that I run the script and the server is not known yet the script fails. I have something like this: yes | git clone ...
4
votes
3answers
690 views

Is there a way to run an ssh server on an Android device?

I'm looking to install Debian over my Android installation so as to be able to use openssh-server, as it's so much better than Dropbear. Is there an easy way to do this, or just to simply install ...
4
votes
2answers
9k views

“Permission denied, try again” while transferring files with scp

I have two servers (A and B) and my local machine. I'm trying to transfer a file from server A to server B. From server A: scp ./backup.tar user@server.b:/home/public/ Permission denied, please try ...
4
votes
1answer
1k views

ssh tunneling a local display to another server

I have a GUI test stand simulation connected to some hardware that is under test. The test stand is a Sun Sparc Ultra 2 SunOs 5.7. The simulation software checks to see if your running your display on ...
3
votes
1answer
696 views

Make a failed SSH forward a fatal error

I have a script which connects to a remote host to replicate some files via SSH. I must connect to an rsync daemon listening on port 873. To accomplish this I have a ssh configuration like this. ...
4
votes
1answer
81 views

Linux ssh shell prompt

While trying to type ~/Code, I somehow got myself to some sort of ssh shell: ┌─[jpearson@cominor] - [~/code] - [Fri Aug 05, 06:08] └─[$]> ssh> ^D As you can see, ctrl+d exited me out of it, ...