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

learn more… | top users | synonyms

1
vote
1answer
24 views

In bash, how can I use a here document but then open stdin?

My example is that I'm tunneling through a server and want to create a command to type in a password but leave stdin open once that's done. For example I need to sudo to a different user everytime I ...
3
votes
1answer
45 views

Predicting the PID of previously started SSH command

This is the weirdest thing. In a script, I start an SSH tunnel like so: ssh -o StrictHostkeyChecking=no -fND 8080 foo@bar This starts an ssh instance that goes into the background, and script ...
0
votes
0answers
9 views

Configure Tor Browser to run over SSH SOCKS proxy?

I'd like to proxy all of my Tor Browser traffic through my home network remotely over SSH. If I have SSH access to a computer in my home network and a Tor Browser bundle here, how can I set up the ...
1
vote
1answer
9 views

Run qsub on cluster via ssh

I'm setting up a system which automatically generates computing jobs on a local (Linux) machine, copies them to a cluster and submits them to the queuing system. I try to avoid the need for scripts ...
2
votes
1answer
23 views

How to find out what floods the terminal?

When logged in via SSH to an AIX 6.1: 0:root@SERVER:/root # Message from root on SERVER (UNKNOWN) [Fri Sep 18 08:00:17 2015] ... Message from qdaemon: : (WARNING) Connection to server failed. ...
1
vote
1answer
20 views

How can I startx and have it run a script remotely via SSH?

I have the following script, which starts X and launches a graphical program: #!/bin/sh #startGraphics.sh #Starts X and runs the graphics program xinit /opt/common/graphics/bin/launchGraphics.sh ...
0
votes
1answer
21 views

How do you add already generated ssh keys to linux machine?

So I've used Putty on a windows machine to generate a key pair. I now want to add this key to my linux laptop. Is there a way to place my key into my .ssh directory to use when trying to access the ...
0
votes
1answer
36 views

Bash script with ssh not returning value of variables

I'm working on a bash script to help migrate KVM virtual machines, but I'll be using dummy code to explain what is going on. I'm using functions to break up the tasks perform on a remote servers ...
0
votes
0answers
19 views

ssh with keys - want to use pam_tally2 - but cannot get it to work

I have configured pam_tally2 before on Centos 6 for users that use passwords for authentication. However, in this case I am only using keys to login (no passwords). It seems that pam_tally2 is not ...
0
votes
3answers
36 views

Open new graphic terminal via ssh

I would like to log in from machine A to machine B -- and regardless or whether anyone is logged in on B* open a new graphical terminal on :1**. To further clarify: This is a lab situation with one ...
5
votes
2answers
81 views

Send the password through stdin in `ssh-copy-id`

I need to automate some identity deployments, ideally using ssh-copy-id. I'm trying to provide the password through stdin, which is possible on ssh by using the -S flag. I'm aware that I can send ...
1
vote
1answer
21 views

Reverse SSH dynamic port allotment error

When I run: ssh -i mycert -R 0:localhost:80 [email protected] and run the following on 'myserver.com': curl localhost:dynamicly_assigned_port I get 'ssh:Server send unrequested port, from port ...
1
vote
1answer
13 views

Sshfs on Beaglebone Black password with Ubuntu arm 3.14

I'm trying to transfer a file to my Beaglebone Black using sshfs. I've installed Ubuntu Arm 3.14. I can use sudo sshfs 192.168.0.102:/ /mnt/sshfs which pops up with [email protected]'s password:, ...
0
votes
0answers
22 views

Added new user, but can't access account - public key encryption

I added a new user to one of our servers, but can't log in to it via putty. The error message is "Server refused our key", and from putty, "Disconnected: no supported authentication methods available ...
2
votes
1answer
42 views

How to ssh into ubuntu (set up in virtualbox) while turned off

I was wondering if it was possible to ssh into my ubuntu which is set up in oracle vm, while it is turned off. I am able to ssh into my ubuntu via putty when it is running, but when I turn it off I am ...
0
votes
0answers
13 views

'Unbusy' terminals which will be logout when TMOUT is reached

I would like auto logout some terminals sessions like TMOUT configuration, but in that case the users leave a program opened which the 'unbusy' sign is the ZERO I/O between server and terminal. I ...
1
vote
1answer
23 views

Run an existent tmux session at SSH login or create if not exist

I want to open a tmux session every time I login through SSH to my server. If the session exist, connect to it, if not, create and connect to it. Think I need edit ~/.bashrc file to do this, but I ...
3
votes
3answers
194 views

Why are all my SSH attempts failing due to timeout?

I'm new to using ssh and related technologies, so it's very possible I'm not understanding something basic. (This also might be a question for Server Fault instead....not sure.) I'm trying to ssh ...
0
votes
0answers
24 views

How to execute one command on multiple linux machines through ssh on a windows pc? [closed]

The title says it all really, if anyone could help that would be amazing!
0
votes
1answer
37 views

How do I run the SSH command to set StrictHostKeyChecking=no?

I'm trying to run the command ssh -o StrictHostKeyChecking=no but I'm a bit lost as to how to run it. I've tried running it from a shell script, but the output was the man page or settings that lists ...
1
vote
1answer
27 views

How to Find, remove and show counter via SSH?

I want to run a command which searches for specific files, then removes them then show how many already is deleted. So far I was using: find -type f -name "*.cache" -exec rm {} \; but when I have ...
1
vote
1answer
12 views

gpg-agent tries to use a non-existent ssh key

I once did an ssh-add on an ssh key, let’s call it foo. Then I removed foo and added another key foobar for the same devices. Now gpg-agent always queries for foo first, even though it doesn’t exist. ...
-2
votes
1answer
47 views

iptables: command not found - CentOS 5.5

I am using CentOS 5.5. I want to add new IP in my iptables. But I cannot do it. Tried everything with 'iptables'. The latest version of 'iptables' is at sbin. I'm in 'sbin' directory. But it says ...
0
votes
1answer
49 views

SSH X forwarding enabled, but no forwarding

In my SSH config file, X forwarding is enabled, and I run ssh with the -X parameter. It gives me first error below but connects in the end. Failed to add the host to the list of known hosts ...
0
votes
0answers
36 views

Mounted Drive Showing No Folders [on hold]

I have mounted USB drive which is 1.8TB in size and has 128GB of data. However, I can't see the data. ls -l shows only one folder lost+found. Is this a permissions issues or is the disk corrupted ?
0
votes
1answer
13 views

Forwarding Output of server which doesnt have xserver to my x client

I have a digital ocean server which doesnt contain xorg is that possible that i can connect through ssh but for example editing etc output to my own editor or open links through in my browser etc.
0
votes
0answers
7 views

wired sshfs failure to amazon ec2

I am trying to mount the file using sshfs on the EC2 to my local system. The command I used is like below: sshfs -o IdentityFile=/Users/path/xx/xxx.pem [email protected] ...
3
votes
1answer
20 views

How do I ensure all data to an SSH pipe is sent, despite lengthy disconnects?

I'm on a laptop with intermittent internet connectivity. (i.e. I sometimes don't have network for a week.) I want the output of a process on my laptop to end up on my server. It all needs to get ...
1
vote
2answers
32 views

Login via ssh to last used folder

I have simple question. Is there any chance to configure ssh in that way, when I login to my server via ssh I want be in last used directory?
-1
votes
2answers
34 views

take tar and copy to remote server and extract that tar

I want to take tar from a logged in shell and take that tar file to a remote host and then extract the tar file over there. I've got below command but the tar itself is not creating. time=`date` ...
2
votes
1answer
18 views

Specific user's SSH-RSA with root access (via AWS EC2)

Is it possible to set up a specific SSH-RSA key (via another user i.e. "ec2-user") to have ability to sudo into root. I.e. You login with key to "Bob" (ec2-user). Currently user "Bob" can sudo ...
0
votes
1answer
50 views

I added a Secure output in SSH session

I've got a server running Linux. There is a web application running in this server. And I'm trying to view log using command tail -f /path/to/file.log The problem is that my Terminal window is ...
0
votes
0answers
51 views

How to delete a file from sub-directory on remote machine via a Shell script [closed]

I am creating a deployment script and running on UNIX remote machine. Added lines to delete existing file and deploy as following: Script is working fine. However, deleting files is not working. No ...
1
vote
2answers
36 views

Add user on Jessie that can log on to FTP but has no shell

I have set up a vsftpd server and I used chroot to keep users locked inside their home directories, which works just fine. I have since tried to edit the passwd file to set the default shell to ...
4
votes
4answers
244 views

Run the same script on several servers through SSH

I regularly need to update some Ubuntu 12.04 (Precise Pangolin) servers (Rackspace). What I do now is: Copy a file to a server using SCP Log on to the server using SSH Stop Tomcat Do some ...
0
votes
1answer
31 views

SSH/OpenMPI: Permission Denied with mpirun but fine with ssh

I am trying to setup a cluster of four nodes (all running Fedora 22) with OpenMPI. On the master node, I've created a password-less key (~/.ssh/id_dsa) and copied ~/.ssh/id_dsa.pub to each of the ...
2
votes
2answers
26 views

What are the strengths and weaknesses of the ssh-keygen algorithms and is one of them the most secure?

I was wondering about the different types of keys you can create with ssh-keygen -t (dsa | ecdsa | ed25519 | rsa | rsa1). Since different types are offered I assume that each has a specific advantage ...
3
votes
2answers
28 views

While logged in to remote, cannot push a file from remote back to local host

I am logged in to a remote host and trying to push a file back to my local machine. Using scp myusername@university_computer:/home/myusername/filename /home/myname/folder results in the error ...
0
votes
1answer
25 views

Putty closed down on login

I have problem with login in into my dedicated server. After logining in into server I got putty message "Connection closed by remote host". The error in var/log/auth.log is: [18064]: Accepted ...
1
vote
1answer
71 views

ssh connection refused from same PC when going outside local network

I have sshd running on port 8000 running on a freshly installed plain vanilla Linux Mint 17.2 Rafaela. $ sudo netstat -tnlp | grep :8000 tcp 0 0 0.0.0.0:8000 0.0.0.0:* ...
5
votes
2answers
65 views

Deleted my ssh keys

I'm on a Mac (OSX). I've accidentally deleted my ssh keys, but I haven't restarted my computer yet so I'm still able to access servers with my key. I guess the ssh-agent has some form of it in ...
-1
votes
1answer
17 views

Manually install SSH service

I have a CCTV camera DVR at work that only allows local login for DVR software management via a command line console (looks like a GUI you'd get on a serial console) or web login for viewing the ...
0
votes
1answer
43 views

Remote execution of a file is not working

I'm trying to execute a local file (here /tmp/cmd) on a remote machine (slc05bkt) using SSH. Here's the command I'm trying from a script file: cmd="ssh -v ssuthari@slc05bkt \"bash -l -s\" < ...
1
vote
1answer
37 views

rsync --delete did not remove file in destination while with ssh

On my RHEL6 pair of servers, I tested the rsync from server-1 to Server-2 with SSH. Everything was good as expected. However, when I moved a file under A directory, A/x.file to B/ of /home/user on ...
0
votes
3answers
54 views

Have a server on DigitalOcean only accessibly by SSH, what happens if my computer breaks?

I bought a server/droplet on Digital Ocean and per its recommendations disabled password login so it could only be accessed by SSH key. I understand the SSH security mechanism basically makes it so ...
6
votes
6answers
228 views

Allow regular users to SSH using a private key they cannot read

Let's say I have a set of machines (called here the customers' machines) that only a small list of people (called the support staff) is allowed to SSH into, using only one account by machine (the ...
1
vote
2answers
38 views

figure out ip addresses of all the machines remotely?

I have around 40 machines and I want to know what are their IP Address. One way is to login into those boxes and figure out their IP Address by using ifconfig command but is there any other simple way ...
0
votes
1answer
22 views

ssh -> screen -> ssh - how to kill remote screened ssh without killing original ssh session

I keep a screen session running on a dev box at work, and I ssh into my dev box and resume my screen session while I'm at work. From there, I hope to other machines. Occasionally, I find myself ...
0
votes
1answer
15 views

Showing login message when connecting to Screen

I have added this to .profile: [ -z "$STY" ] && screen -Rd "work" When connecting to a remote machine via ssh, the automatic attachment to screen is hiding the server's motd (message of the ...
0
votes
1answer
46 views

How do I run a executable .sh file on a remote server from local in its remote-existed path?

update: Sorry it seems the command is executed on remote but just not in the path of where script.sh exists. So I modified the question title from How do I run a executable .sh file on a remote ...