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

learn more… | top users | synonyms

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
283 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
705 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, ...
3
votes
1answer
2k views

How can I convert a PEM key into a RSA key pair?

I was just sent a PEM key from a client as a means to access their Amazon EC2 instance. How do I convert this into something I could use with OpenSSH?
5
votes
2answers
659 views

How do I configure ssh tunneling past a firewall?

I have a NAS running Linux behind a firewall at home. I want to access it remotely using a few services such as a Transmission GUI (port 9091) and webmin (port 10000), but through an SSH tunnel on ...
25
votes
4answers
7k views

Can mouse wheel scrolling work in a /usr/bin/screen session?

Is there any way to use the mouse wheel to scroll through the output of a screen session? I can use the keypad scroll through previous output in screen after pressing ctrl+a [. Is it possible to do ...
4
votes
2answers
4k views

Is there any way to improve Putty on slow connections?

I'm working with putty but have a slow connection to the server. It's not slow everywhere and I don't need to get it faster. There is latency between when I type and when the text is displayed in the ...
14
votes
1answer
5k views

How can I configure a reverse SSH connection to the connecting computer?

I'm going to be deploying a number of machines in the near future which will be behind routers. It won't be feasible to set up dynamic DNS on each router and port forwarding, so is there a way I can ...
1
vote
1answer
929 views

cryptsetup luksOpen only accepts password via ssh

while installing my Gentoo system I encoutered a strange error. One of my disk is encrypted, I have done all the installation via ssh, so did I enter the encryption passphrase via ssh. Now I entered ...
8
votes
1answer
173 views

Does ssh-agent store my passphrase?

Is it possible to determine the passphrases of private keys added to ssh-agent? I'm thinking along the lines of someone with root privileges trying to find out my passphrase after I have added the ...
12
votes
5answers
18k views

How to delete a file on remote machine via SSH by using a Shell Script?

I am writing a Shell Script where I have to delete a file on a remote machine via a Shell Script. Flow manually: ssh username@domain.com .. then at domain: cd ./some/where rm some_file.war How ...
5
votes
2answers
1k views

Can KWallet manage my ssh passwords?

I need a way to store some SSH passwords. Note that these are login passwords which I need to pass to ssh; key authentication is unfortunately not an option. I'd like to be able to have KWallet fill ...
18
votes
2answers
29k views

Is there a command to list all open displays on a machine?

When SSH'd locally into my computer (don't ask, it's a workaround), I can't start graphical applications without running: export DISPLAY=:0.0 If I run this first and then run a graphical ...
0
votes
2answers
920 views

Multiple concurrent SSH sessions from different clients but with the same user/password

Opening multiple concurrent ssh sessions from different clients but with the same user/password. Is that possible?
5
votes
2answers
1k views

How to make password-less login work

I generated a key and copied it to my target: ssh-keygen ssh-copy-id username@hostname I left the the location of the key as default and did not set any passphrase. For a small while after that, I ...
1
vote
1answer
621 views

Only allow ssh/vpn on OpenWRT

If I don't want to use wireless encryption, but I still want security and I want to use sshuttle (on the clients, see: https://github.com/apenwarr/sshuttle/) for tunneling everything through an SSH ...
9
votes
1answer
6k views

Foreign characters won't display in SSH

I'm having some problems with using ssh and a remote server (which I do not have admin access to) - Specifically, there are a couple of folders on there with Korean and Cyrillic text. When I display ...
12
votes
6answers
8k views

Copy input to clipboard over SSH?

Here's my usage case: I'm often connected to other computers over SSH for work and I often need to copy and paste documents/text from the server to locally running editors for writing examples and ...
5
votes
4answers
3k views

ssh hanging then time out

I am new to ssh on linux. I have two computers connected on a switch. The first one is 192.168.1.2 and the second is 192.168.1.3. When I use the ping command I got a reply and everything is good, but ...
4
votes
1answer
933 views

SSH Port Forward a local IRC server to my remote server

So, I have this slight dilemma: I am not allowed to host an IRC server on my VPS, but I am allowed to use tunneling of some sort to let users connect to an IRC server I have set up locally on my Mac ...
5
votes
2answers
5k views

Multiple 'Host *' in ssh_config?

My understanding of the way ~/.ssh/config works is that each 'Host ' line takes effect for any host matching after that point in the config file. I have a number of personal servers and work servers ...
26
votes
2answers
2k views

Is it safe to give out my SSH public key for work?

I currently work remotely for a number of organizations which need me to access their servers regularly for maintenance and upgrades. Is it safe for me to add my RSA public SSH key to the ...
2
votes
2answers
1k views

SSH on my local network - problem with login

I'm having problem with logging into my local-network-linux (server) ssh with Putty (and with Linux terminal, too) When my server shows me request to insert username, I insert "root" and I do press ...
3
votes
1answer
1k views

Chroot debian squeeze for shell access

A user requires shell access to an Ubuntu server from the WAN side. There are many shell accounts with simple passwords. So shell port (port 22) is blocked in the firewall. For my WAN side user I am ...
9
votes
2answers
15k views

Use ssh with a specific network interface

I'm using openconnect to connect to vpn. After entering my credentials, I get this: POST https://domain.name/... Got CONNECT response: HTTP/1.1 200 OK CSTP connected. DPD 30, Keepalive 30 Connected ...
1
vote
1answer
304 views

restricting pushes to selected Mercurial repositories using `ssh` forced commands and `hg-ssh`

The context of this question is the hg-ssh script. It is helpful but not critical to know something about Mercurial. This script sets up a forced command using public keys so the given public key ...
2
votes
2answers
462 views

Run ssh as a command of another ssh command

I want to run a program on a machine that I have ssh access to from a gateway machine that I can access with ssh too. When I want to run an mpi program on the target machine T, I access to the ...
3
votes
3answers
3k views

Pass the background flag (&) through expect and ssh

My command line/bash fu is extremely weak, but I'm trying to hone my abilities. Hopefully someone can help. I wrote a super simple expect script so that I can SSH in to a headless box we're using at ...
5
votes
2answers
450 views

Run mpirun and ssh-add remotely on the same session

I am developing a program that is running on multiple machines using MPI. I have machines on Amazon EC2 where I can start mpirun from one of them (the master). Everything works as I expect if I ssh ...
3
votes
3answers
442 views

Output compiler options from SSH

How can I list the configuration options that ssh/sshd was compiled with? I'm attempting to troubleshoot a SELinux configuration issue, and want to make sure that SSH was compiled with ...
25
votes
6answers
9k views

Can I find out which ssh key was used to access an account?

Is it possible to find out which ssh key was used to access an account? I have an account on a server that I let several (trusted!) people have access to via ssh. I'd find it useful to be able to ...
10
votes
4answers
318 views

Is my SSH key paired with me as a human, or with my user account on one machine?

In the past few days, I have been trying to acquaint myself with SSH, and I hope that I've understood it. One question remains, however -- is my key associated with me (as the user) or my user ...
7
votes
2answers
21k views

How to add a ssh user who only has permissions to access specific folder?

How to add an ssh user who only has permissions to access specific folder? useradd -d /var/www/xyz.com.tr/musteri -s /bin/bash -g sshd musteri I created a user called musteri. I set its home ...
0
votes
1answer
473 views

None of the dot-files is sourced when running bash via ssh, part II [duplicate]

Possible Duplicate: dot file not sourced when running a command via ssh This is a continuation of prev. my question dot file not sourced when running a command via ssh (I could not add ...
0
votes
0answers
528 views

SSH cannot connect from Remote computer after a while

I can successfully connect to Debian via SSH. The problem is that after a while—1 or two days I think—it depends on the number of times I connect, Ii cannot connect remotely..only locally. ...