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

learn more… | top users | synonyms

0
votes
1answer
31 views

Keep program running after logging out SSH -X, and reopening it later [duplicate]

I need to login to my school computer where I am running an experiment. I am logging via SSH -X since it uses a custom made GUI application. I want to be able open the program, make it start ...
1
vote
0answers
37 views

Persistent SSH port forward without public keys

Problem I haven't found a solution to run an SSH port forward in a reliable and persistent fashion, when the server you are connecting to does not support public-key authentication. Question What ...
2
votes
1answer
31 views

How do I disable graphical password prompt from SSH?

Sometimes SSH pops up a GUI password (or host authentity) input window, which interacts poorly with Awesome window manager, prevents copy&paste of the password and is generally unnecessary for me. ...
1
vote
0answers
8 views

pannel applet wont spawn process

I am using Mate, with debian8, an this has never not worked, so I'm confused now. I have a custom applet (launcher), which reads: ssh user@ip When clicked it does nothing, ordinarily a terminal is ...
0
votes
1answer
53 views

Detecting if ssh login fails

I have this line to run in a script, the issue is that I have to run the script over several hosts ( and it includes windows servers) and I don't know how to catch the error if the ssh receives ...
0
votes
2answers
61 views

ssh inside a script with 'command' instead of “command”

I am trying to run commands on various nodes of our cluster automatically via a simples script. I have seen that I can run: #!/bin/bash echo "Machine: "$HOSTNAME; ssh machine2 'echo Machine: ...
0
votes
2answers
50 views

Accessing port 8080 on a server without using port 8080 for my SSH connection

I'm running a program that lets you interact with it in the browser. To do this you run the program and open "localhost:8080" in your browser (if 8080 is the right port). However, I'm running the ...
0
votes
1answer
19 views

Transparent proxying of TCP connections on port (mostly, without root access)

I have the Client machine living somewhere on the Internet, and it needs to access a custom port of Target machine (or, initially any port on any reachable machine, but, eventually, particular port, ...
1
vote
2answers
39 views

remote shell - are there any non-ssh based alternatives?

Are there any alternative SSH servers other than SSHD? One that is not SSH based? Ideally one that can be installed from offical Debian repository, that listens on a port other than port 22. (To ...
0
votes
1answer
27 views

Config iptables ssh over VPN

How can I define a rule that only allows ssh via VPN in iptables? My iptable Rule is following: #!/bin/sh IPT="/sbin/iptables" $IPT --flush $IPT --delete-chain $IPT -P INPUT DROP $IPT -P FORWARD DROP ...
1
vote
1answer
31 views

Font/SSH interaction?

I use tmux, and tmuxline which uses the powerline fonts to look pretty. The problem is that when I ssh into a server, the font doesn't work. I installed the fonts as according to these ...
1
vote
2answers
50 views

How do I use my own local text editor to modify system (requires root to save) files on a remote system?

I've recently fallen in love with github's Atom text editor, and I enjoy using it for all my local coding and configuration. I started to maintain a Nagios installation for several dozen servers and ...
0
votes
1answer
29 views

SFTP Chroot and SSH

I have a chrooted SFTP user group to access my home server. The chroot location is /mnt/, mostly because it is already owned by root and is where I have mounted the external HDD I want to the chrooted ...
1
vote
1answer
54 views

How to enable systemd user sessions for remote logins on CentOS 7?

I am trying to enable systemd user sessions on my CentOS 7 server. All the pieces seem to be there, and I have also run loginctl enable-linger <user>, but I don't have a systemd user session (or ...
0
votes
0answers
18 views

OS X USB installer utilities, cannot ssh any host

I booted my mac from a OS X USB key installer. I cannot boot it from the internal HD because OS is damaged. I want to copy some files from my Mac to another computer with scp. The problem is that ...
1
vote
2answers
37 views

Any special permission ssh remote command working on fifo file(aka named pipe)?

I need to redirect some strings to a fifo file with ssh remote command, but always got permission denied, the command I executed is: ssh rundeck@nagios1 sudo su - root -c 'printf ...
1
vote
1answer
73 views

iptables allow only ssh and vpn traffic

I have dedicated server with ubuntu 14.10 installed. The server should connect to an openvpn server and the traffic should only go through the vpn, except for SSH traffic. My idea is to realize it ...
0
votes
1answer
17 views

I'm trying to deploy with git to a semi-managed vps, need to write a script to change owners

I'm trying to deploy my sites on my company's semi-managed vps server using this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps It ...
1
vote
0answers
31 views

Different Commands on Multiple Servers

I want to execute different commands on different servers. Server addresses are in a text file. Commands are the same except a parameter related to their addresses. For example: ./run0 on the first ...
0
votes
0answers
26 views

rsync unexpected EOF in read_timeout

I'm trying to rsync directories from server A to server B, but i get the following error: permission denied unexpected EOF in read_timeout Command is: rsync -avzn ${LOCAL_DIR} ...
2
votes
0answers
13 views

How do I test sshguard on debian?

I want to replace fail2ban with sshguard because it uses less resources. I installed sshguard via apt-get and it seems to be running on my debian wheezy server: # /etc/init.d/sshguard status sshguard ...
0
votes
1answer
31 views

Installing Node.js on a remote LAMP server with no internet connection

As a part of a student project, I am to host my Node.js-based server application on a server so that other people can try connecting to it and test the integrity of it's functions. The problem is that ...
-1
votes
0answers
27 views

Theoretical situation: Limited access and installation of some application to a live server

I have been given this task described below and I made list of assumptions and little list of what can go wrong and some plan of action what to do. The task does not really say how to access the ...
0
votes
1answer
59 views

Can't run binary executable on Ubuntu 12.04

I get the following error: ./cataclysm: command not found when trying to run this executable on a Linux server over SSH. When I run ldd cataclysm, I get: linux-gate.so.1 => (0xf7759000) ...
1
vote
2answers
56 views

How do I prevent just 'exit' from being saved when I close an SSH connection?

When searching for a way to do this on Google, all I can find are ways to quit the session without saving history (like kill -9 $$), but I have the opposite problem. I want to save all of my history, ...
0
votes
0answers
16 views

Customized Restricted shell

I want to implement authorization of bash commands.I started with TACACS+ Server and tacplus package.I did not find a way to do that.After that I Implemented some restricted shells.first bdsh that was ...
0
votes
2answers
118 views

Debian autossh boot script not working properly

I wrote the start script at the bottom of this question to try to get one of my devices to automatically create several remote forwarded ports with my VPS upon boot. (I've stripped the LSB tags to ...
8
votes
1answer
365 views

mkdir: cannot create directory: Function not implemented

I am in college and have to submit my cs homework from a school Linux machine, but I like doing the homework on my laptop (Mac). So instead of copying my files over every time, then submitting them, I ...
-1
votes
1answer
16 views

SSH session limit

How can I increase the ssh connection on my freeBSD jump server. I am using pssh to push configs to multiple servers by tuneling through my jump server. As of now I can only push configs to 9 servers ...
0
votes
0answers
59 views

Executing Minecraft Server Commands via SSH and Screen

I'm extremely new to linux, so please help me out if you can! I have read many of the posts about managing/monitoring servers using SSH and Screen, but have not found anything regarding my particular ...
2
votes
2answers
77 views

Is it possible to send a HEREDOC over ssh to a remote host from inside a script running locally?

I essentially want to run a script on machine A which will SSH into machine B, execute commands on B, and return the output to machine A. So I am creating a csh script to do this, hopefully, if it's ...
-1
votes
1answer
53 views

How to copy authorized_keys to another user on linux? [duplicate]

I can ssh into a Linux node on the cloud with root. I've created another user, web, and I want to add my ssh keys to that user. Here's what I've tried so far (as root): mkdir -p /home/web/.ssh cp ...
-1
votes
1answer
29 views

How to check ssh secret and public key validability in local command line [duplicate]

I have a secret key id_rsa and a public key authorized_keys that should be pair. But I have a problem to ssh by using these keys. I want to check the validability of these key pair by a command in ...
0
votes
1answer
36 views

ssh-copy-id different port

i am trying execute ssh-copy-id in one port different than 22 (default). I researched and found the command below $ssh-copy-id -i ~/.ssh/id_rsa.pub "user@192.168.0.1 -p 22001" but, when execute the ...
1
vote
1answer
28 views

Integer after username in OpenSSH client separated by colon

I have a reverse SSH server in Cisco router(runs IOS operating system) and it listens on port 2001: C1841#sh control-plane host open-ports Active internet connections (servers and established) Prot ...
1
vote
1answer
32 views

Alert when transfering files using SSH?

I transfer files through ssh, from one computer to another. Is there any way I receive a notification on my computer, when someone tries to transfer files via ssh?
0
votes
1answer
26 views

Restrict SSH users to SFTP

How to configure an SSH server to only allow users to transfer files using the SFTP protocol, without being able to log in with their username ? Note: If the user's shell to nologin or null is not ...
2
votes
2answers
60 views

SSH with RSA keys under Raspbian keeps requesting passphrase

Background information I am trying to connect a Raspberry Pi (Raspbian) to another via SSH. Therefore, I have generated a pair of RSA keys in my "client" Pi and saved its public key in my "server" ...
17
votes
5answers
1k views

Why is Firefox so slow over SSH?

I try to launch Firefox over SSH, using ssh -X user@hostname and then firefox -no-remote but it's very very slow. How can I fix this? Is it a connection problem?
1
vote
0answers
25 views

Linux user ssh connection disabled after execution of setfacl command

I have very little linux administration experience, after searching a lot stuff online, finally I decided that I must hope that someone helps. The problem is, I needed to share an account with a ...
0
votes
1answer
36 views

Saving from arecord on a raspberry pi across a network to a mac

I've currently got a usb mic plugged into a Raspberry Pi B+ and am using the following code to record data: arecord --buffer-time=5000000 -D plughw:1,0 -f cd -t raw | lame -r - stream.mp3 I then ...
1
vote
1answer
34 views

Login using Private key on USB Dongle on SSH@linux

I'm presently using PPK file (public and private key pair) generated from putty to Login (password less) through ssh in Linux server and it is working well. I am exploring possibility in using my ...
1
vote
2answers
31 views

Perpetual SSH connnection security and practical implications

I have used the linux desktop for many years, but I rarely get into its networking aspects. I run a personal fileserver (primarily running owncloud on Ubuntu 14.04), and to perform regular ...
0
votes
0answers
30 views

keep getting broken pipe when ssh

I'm using Ubuntu 14 LTS with two machines. When I ssh into the remote machine, I keep getting pipe broken after une minute or two, and in my ssh client I set up the keepalive already. This happens ...
0
votes
1answer
50 views

Run windows local program from remote linux

I'm trying to run a python script on a remote linux machine accessed by SSH from my local Windows machine. The script contains a loop where for all files in a directory it's going to go to a certain ...
1
vote
1answer
46 views

Automating setup of the SSH tunnel

I need to frequently login to many machines but I can only login to them from a proxy machine or using an SSH tunnel (by tunneling through that proxy machine). The problem is that I cannot use ...
0
votes
0answers
56 views

tmux / screen ctrl+arrow (left right) doesn't work on SSH

I've configured tmux to skip words on Ctrl+right / left : set-window-option -g xterm-keys on It works just fine, but as I do SSH, it doesn't work and prints ;5D or ;5C.. The same issue occurred ...
1
vote
1answer
29 views

How to switch user with pre-configured credentials in SSH Terminal after logging in as standard user

I was wondering how to execute a command file where: After logging in as a standard user, I want to switch user to "username" with password being "password", I can successfully execute the command.txt ...
0
votes
1answer
94 views

ssh connection to gitlab.com fails behind home router, but is fine when at workplace. However, Github and Bitbucket over ssh are fine at home

I am trying to connect to my repository on gitlab.com. It used to work on my laptop both when I was at home and when I was at work. I was using ssh and had added the ssh keys to gitlab. Suddenly ...
2
votes
1answer
63 views

Solution for private keys on a remote machine?

I have to manage several servers, with services that can be cron, and integration jobs, deployments, backups. The common thing with all of these, is that they sometimes require access to other ...