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

learn more… | top users | synonyms

1
vote
1answer
30 views

How can a daemon user connect through SSH? [closed]

I have launched process named redmine that launched by deamon user – redmine. Some inner redmine (as process) plugin needs SSH connection to outer service and make it from redmine (user), but this ...
0
votes
1answer
21 views

Instantly getting Write Failed: Broken Pipe with SSH to an embedded system

As said above, when I try to SSH into my embedded system (a De0-Nano-SoC FPGA development board running Angström with Kernel 4.1) I get a "Write Failed: Broken Pipe"-Error and get disconnected. I read ...
-3
votes
0answers
44 views

Permission denied when accessing SSH server

So, a little background. I'm trying to host my own git server, and I decided to use SSH to log into it. I started two days ago, trying to configure SSH, to no avail. I'm hosting the server on my home ...
2
votes
1answer
58 views

bash: cannot create temp file for here-document: No space left on device

one day I was doing some stuff and I might have changed something which I shouldn't (I was working on the /etc/network/interfaces file). By the way, this is my OS: $ uname -a Linux ribas ...
1
vote
1answer
29 views

Setting up port forwarding on router for reverse SSH tunnel

My home PC is behind NAT but my router has static ip address. My work PC uses 3G stick for Internet (So I guess it is like being behind NAT). I would like to create a reverse SSH-tunnel to connect to ...
0
votes
4answers
100 views

How to run subshell commands over SSH?

I have a cluster of computers which are connected via passwordless SSH and I have written a utility which runs a command over the entire cluster. The way it does it is by picking up machines present ...
1
vote
0answers
10 views

Share socks5 connection to a 2nd NIC system wide

I'm trying to accomplish the following: I have a server with two NICs. One is wireless (wlan0) made as an access point (using hostapd) and the other one (eth0) is connected to a network that doesn't ...
1
vote
1answer
29 views

How to force low ssh-encryption

I regulary backup my computer to my BananaPi with a Hard Disk connected. The Problem is, that the transfer speed over ssh is pretty low because the Pi can't handle AES 256 encryption quick enough. ...
-1
votes
0answers
24 views

.bashrc - Create an alias for SSH declare Function [duplicate]

So, I have a function: function () { command1; command2; } When I do ssh root@server "$(declare -f function) function parameter" It works fine. So, I want to make it simplier - through an ...
0
votes
2answers
43 views

SSH timeout to everywhere after a fresh RHEL7 install

[user@desktop ~]$ ssh root@foobar ... $ sudo su - [YOU HAVE NEW MAIL] root@foobar:/home/root # cd /etc root@foobar:/etc # Connection to 1.2.3.4 closed by remote host. Connection to 1.2.3.4 closed. ...
0
votes
1answer
29 views

SSH tunnel with different ssh port

I am trying to make a ssh tunnel connection to a remote server that has different SSH port. My PC hostname: fooserver.com IP address: 10.25.0.186 SSH port: 63354 My Remote PC hostname: ...
1
vote
1answer
103 views

Automatically enter SSH password without using SSH Key, 'expect', 'sshpass' or Python

I have small device that starts up a tiny VM of PowerPC linux that I need to SSH into from a script on a tiny version of Yocto linux. The PowerPC VM SSH passwords stay the same, but it resets most of ...
0
votes
1answer
33 views

Xming for Linux? (Aka run a display/x11 server inside a window)

With Xming I can run an X11 server inside a window and then run mate-session to get a very fast remote desktop inside a window. On Linux, I'm not entirely sure how to X11 forward mate-session to just ...
0
votes
2answers
26 views

How to forward ssh X11 from an ssh session to base computer?

I am working from out of town, so I need to connect my computer at campus. Normally, when I am around the campus I can just use my ip of lab computer to forward x11 like; ssh -X acc@lab-computer ...
1
vote
1answer
25 views

Allow the restricted rsync (rrsync) script for arbitrary directories with authorized_keys

Automating Backups I would like to implement a backup solution with copies data from various directories from a Web server (WebServer) to a local backup server (BackupServer). The backup should run ...
1
vote
2answers
59 views

How can a command in a pipe read from a keyboard? [duplicate]

I randomly tried to execute the following command in bash1 cat /some/file | ssh user@machine 'cat >/destination/file There are no keys installed on the remote machine, so the only way to ...
3
votes
1answer
28 views

Remove any ssh-keygen commands from init scripts

I'm running Ubuntu 14.04 64 bit server. I'm following this guide: Secure Secure Shell https://stribika.github.io/2015/01/04/secure-secure-shell.html It includes the instruction: remove any ...
0
votes
0answers
12 views

Bash script not passing variable through ssh [duplicate]

I'm trying to write a script that will ssh into multiple servers and echo the line user_pref("plugin.state.java",2) into every user's firefox pref.js file. I keep getting the error bash: ...
0
votes
0answers
65 views

Running a batch script remotely using rdesktop

I have a setup that implies calling rdesktop on a remote machine which is accessed through ssh: user@192.168.1.110:~$ ssh user@192.168.1.120 -X and then running rdesktop as: user@192.168.1.120:~$ ...
1
vote
2answers
38 views

Execute inline command remote server with ssh

I'm trying to create a single script that connects to a remote server and executes an update, but I want to make sure no one is using the machine at the time so I execute a "ps" command to see the ...
0
votes
2answers
85 views

How to access server without IP-address

I have a centos server that was previously on my company's network using a static IP address, but it has since been blocked/firewalled on the network such that I'm not even able to ping it. I was told ...
0
votes
1answer
40 views

SSH into another VM via Perl / Sh script failing. Works manually

I want to run a Perl CGI script (a_web_page.cgi) from my dev box .1.20 that runs a bash script from the same folder (host_script.sh). This script then runs a SSH command to another server 1.10 that ...
0
votes
0answers
18 views

How do I add a vim configuration to a user who is restricted to a specific directory?

So basically, I have created a user that only has access to a specific folder with: useradd --home /some/dir username Now what I would like to do is add my vim configuration to this user's "home" ...
0
votes
1answer
40 views

Setting up aliases with interactive ssh session [duplicate]

I need to keep ssh'ing into many-different Linux boxes (Ubuntu mostly) and every time I miss my basic aliases. Is there a way to setup aliases etc while opening an interactive ssh a machine without ...
0
votes
0answers
16 views

How to FG a Background Process without jobs, fg, etc [duplicate]

I am SSH'ed into a Ubuntu Server. I started a process and closed the terminal window, reconnected to the server. Using TOP I can see the process is still running smoothly, but I did not assign a job ...
0
votes
1answer
38 views

How to execute a script on SSH Login or device bootup/shutdown? [duplicate]

I have a raspberry pi, which is online and connectable by SSH. What I want to do is create hooks for the following states: When the device starts Before the device shuts down When an SSH login ...
2
votes
1answer
45 views

Set ports for ssh to connect to remote Raspberry Pi

My Linux laptop is on Verizon HomeFusion internet service and I am trying to configure so that I can SSH to a remote Raspberry Pi (through its router) that is using the Virgin mobile service. Seems ...
0
votes
1answer
47 views

problem editing utf8 text file with vim

I have a problem editing a html file on a server via vim. The file is utf-8 encoded. While editing with vim (v7.3, no plugins active) I can see umlauts and editing and saving a line before the umlaut ...
3
votes
1answer
93 views

SSH connection through SSH tunnel keeps closing

I have a PI at home that creates an SSH tunnel to my VPS with autossh so I can access it from my VPS. When I log in to my PI from my VPS the connection keeps closing (which makes it unusable). For ...
4
votes
0answers
42 views

Why does connecting using an ssh key fail with one host name but work with others? [closed]

Trying to use an ssh key to a server which has different host names works with some host names, but not with others? Is there some reason why ssh would work that way? E.g. say hostname1.com and ...
0
votes
0answers
18 views

Unable to ssh to virtual machine, yet sshd running and firewall port is open

I'm testing a VM provider's service, and I'm unable to ssh to the VMs I created yesterday. I am able to get in via their web interface shell. The connection just times out: ssh: connect to host ...
1
vote
1answer
27 views

How to auto-unlock SSH keyring upon login

Situation: I am on Linux Mint 17.3 and have on the station auto-login enabled. I have an SSH key in gnome-keyring. Objective: I would like the SSH keyring not to ask me for password. I am aware it ...
0
votes
0answers
12 views

save state and detach from an xming session and attach to the same session later

Welcome to the Xming X Server Vendor: Colin Harrison Release: 6.9.0.31 FreeType2: 2.3.4 and Linux 3.8.13-118.4.2.el6uek.x86_64 #2 SMP Tue Mar 22 20:47:10 PDT 2016 x86_64 x86_64 x86_64 ...
0
votes
1answer
34 views

Invoke rsync with specific defaults for current folder?

I have a local folder which I want to synchronize with a remote folder through SSH, and I'd like to do it through rsync. I would always call rsync with the same arguments, and same source and ...
1
vote
2answers
77 views

Connect to Linux machine behind a firewall

I am looking for way to connect to Linux machine without connecting to it using SSH, Telnet or something similar. The Linux machine is behind a router and I don't have access to it. So opening / ...
0
votes
1answer
50 views

`ssh` fails to reach destination

I am trying to ssh to another machine in my lab using the IP address. The IP address is 137.84.4.211 and let's say the host name is MyName. My IP address is 137.82.81.10. I don't know if this mean two ...
1
vote
1answer
21 views

How to recover a process GUI after broken pipe

I started a process with GUI from the command line in a remote computer using ssh -X. Knowing it would take a long time to run it, I left it in the background and disowned. As I feared, I had ...
0
votes
1answer
51 views

SSH client does not offer public key to SSH server

I have two non-root users in one Linux server. If I make a SSH connection(key-based authentication) to one particular SSH server under first user, then it succeeds: /* debug messages removed for ...
1
vote
1answer
41 views

SSH publickey permission denied (Google Cloud Platform)

We run a small handful of Debian servers on Google Cloud Platform. New servers we setup, we're able to add SSH keys at the point of creation and access the machines via SSH without a problem. Older ...
0
votes
1answer
52 views

SFTP, SSH Couldn't read packet: Connection reset by peer [duplicate]

My sftp -v to host returns, Connecting to xxx.xx.xx.xx... OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: ...
0
votes
1answer
35 views

Conditions sent over ssh are performed locally, not remotely [duplicate]

So I am trying to do something like this: ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i \ /home/backupboy/.ssh/id_rsa user@server.com \ "[[ $(ls -1 /mnt/dir | wc -l) -gt 4 ...
1
vote
1answer
42 views

How to get `yum list` output to stay on one line when getting output via remote ssh command?

When I SSH to a machine with ssh machine and run yum list it outputs everything that's installed as expected, and importantly every item is on one line like so: xz-devel.i386 ...
2
votes
2answers
44 views

Add keys to ssh-agent

I have three SSH key pairs that I want to have added to the SSH agent every time I start a shell. After restarting I always have to manually add them again by using ssh-add ...
2
votes
1answer
37 views

Send my private key through the ssh session only

My scenario: localhost: contains my private key serverA: contains my public key serverB: contains my public key I login to serverA and perform some operations, which involve copying some files from ...
0
votes
1answer
52 views

How to run a command on remote host from a service?

I have a service in '/etc/init.d'. In that service, I run a command on a remote machine using ssh as a user. Currently I do this in the following way: sudo -u user bash -c "ssh user@172.21.6.70 ...
0
votes
1answer
55 views

Able to SSH from Windows, but not through Kali

I was trying to connect my Raspberry Pi 3 Model B over Ethernet to my netbook(running Kali from a bootable USB). After a lot of struggle that the RPi automatically assigned an IP to itself when ...
1
vote
1answer
21 views

Check presence of a hostname under custom port in known_hosts

I need to add a check if the hostname is already present in the known_hosts. Normally I would do something like that: ssh-keygen -H -F hostname However, that does not seem to work for me in this ...
0
votes
0answers
24 views

SSH Connection to a folder only [duplicate]

I want to provide SSH connection to my developers to connect to the server. But I want the connection to be limited a folder and its subfolders and files only. How can I do this?
0
votes
1answer
21 views

Proper way of creating new accounts in passwordless systems [closed]

What is the proper way of delivering credentials in passwordless ssh systems (linux)? By passwordless I mean login using only SSH keys. Should I generate pair of ssh keys and deliver it to new user, ...
1
vote
1answer
37 views

Specifying SSH KexAlgorithms works at CLI but not via ssh_config [duplicate]

By default, my SSH client disallows the use of the diffie-hellman-group-exchange-sha256 key exchange algorithm. However, I need to access a server on 10.0.0.1 that requires the use of that algorithm. ...