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

learn more… | top users | synonyms

0
votes
2answers
12 views

How to do port forwarding between localhost and localhost on two machine?

I have a local machine A, and I want to access machine C that is behind a firewall. I have access to machine B, which is on the same network of C, and I want to use machine B as a ssh server to ...
0
votes
0answers
7 views

emacsclient connection refused

I am running emacs in daemon mode and I got dissconnected from the server on which it was running. After re-connect, when I run emacsclient -nc I get the error connect localhost port 6012: ...
0
votes
1answer
42 views

No SSH while loged off locally

So, I'm trying to access my laptop while I'm outside my LAN, but I have a problem, at least I think that isn't the normal behavior. I can't access via SSH if my user isn't locally logged in. I'm not ...
0
votes
1answer
28 views

SSH to 2 local machines via Unix server

Here is the situation: I have a Windows home machine Home which I can connect to Foo, a Unix server via ssh. Then I can ssh from my Unix work machine Bar to this same server Foo. Windows ...
0
votes
1answer
24 views

Debian ssh Cannot Resolve Hostname on DHCP Server

I used to connect to my raspberry pi via ssh using the hostname of the pi and vice versa. Now that doesn't work. I can connect by using the ip address, but that changes daily and it is annoying to ...
3
votes
2answers
40 views

How to skip unresponsive server

I wrote a script that runs on multiple servers. Sometimes the script gets hung on one of the servers and I have to hit (control C) to end the process. If not, it gets stuck and keeps trying to ...
1
vote
0answers
10 views

How to enable unison to login with ssh from systemd service unit?

I have a pdf-sync.path file for systemd runnin in user-space (systemctl --user enable pdf-sync.path). Whenever there is a change in the folder that I defined in the path file I want to synchronize ...
0
votes
1answer
29 views

Proxy connection via SSH from one terminal to another

I have a private proxy which can be either HTTP/SOCKS, and i am renting a Linode server that i use for web-hosting. If I use a program like putty to SSH onto the webserver and run who it will display ...
0
votes
1answer
22 views

Disabling openssh host key checking on LAN

If I want to specify for LAN addresses that I don't want to deal with host keys, how do I do that? /etc/ssh/ssh_config Host 192.168.*.* StrictHostKeyChecking no UserKnownHostsFile /dev/null ...
0
votes
0answers
27 views

How do I send a variable through SSH so it can be used across servers? C Shell

EDIT: Would this be possible in bash? Note: I have to use C shell. (.csh) I have something very similar to the following code: set var = "string" ssh -X server "$var" << END * I ...
0
votes
2answers
24 views

SSH to docker container is not working

I'm running a Discourse forum software container in an Ubuntu Server, I was able to login to container using the command. sudo docker exec -it app bash And then I've setup password for the root ...
0
votes
1answer
35 views

How to add a folder to a remote hosts PATH using a shell script?

I'd like to automate the process of syncing a local ~/bin folder to a remote host, and adding that folder to my remote shell's path. I've got the syncing part done, but am not sure how to automate ...
3
votes
3answers
372 views

SSH in SSH in shell script

I'm not sure I have the capability to test this right now, but was wondering if someone might advise if it is possible to do something like this: Run a shell script Shell Script SSH's into a ...
3
votes
2answers
31 views

Archiving to remote-machine with tar/cpio and ssh?

I'm renting a couple of VPS with Ubuntu, and I've managed to fill-up one of them. Here I've got several directories with lots of files I'd like to put into an archive. Unfortunately, I don't have ...
0
votes
1answer
16 views

persisting multi-factor user data for custom pam authentication in CentOS 7

I am designing n-factor authentication for CentOS 7 using a custom PAM module. When the user tries to SSH, they will be texted a pin code, and be prompted to enter the pin. Where should I store the ...
0
votes
1answer
17 views

Lock SSH DOR access the same as VSFTPD?

I'm quite new to Linux, I'm running CentOS 6.7 and I'm trying to follow best practice procedure of creating a user "instead of using root" but I want to restrict their SSH file browsing capability to ...
0
votes
1answer
23 views

ssh master - execute su remotely

I have a server S that I need to connect to. I'm connecting to S as user asdf with control master and after that I perform some stuff: ssh -N -f -M -o ControlPath=$SSHSOCKET ${USER}@${IP} -p ${PORT} ...
1
vote
1answer
45 views

Script SSH and run command

I must connect to server every day by ssh, and I made a script to display logs. This is my code: #!/bin/bash A=`date +%Y` M=`date +%m` D=`date +%d` gnome-terminal --geometry=82x11 \ --tab --title ...
0
votes
1answer
20 views

Command does not execute properly on remote server

I've been trying to update my backup script such that it saves data on a remote server instead of on a local disk. I have succeeded in converting the entire script but the last part in which I remove ...
2
votes
2answers
59 views

ssh Public key problem

I have several clients connecting to an SSH server all using public key authentication. I am trying to connect from an Ubuntu 14.04 VM to the same server. Cant get public key authentication working. ...
0
votes
1answer
32 views

Graphical access to windows over ssh

I have a chromebook with kubuntu on and a desktop computer at home which is quite powerful running windows 10. Since the chromebook has limited memory/hd space I would like to be able to access my ...
0
votes
0answers
48 views

Capture user input in SSH

Say you are at work, you ssh to your home PC and opened a python game.py. No VNC. Is it possible to press down and up, space, etc. inside the window of the game? No need to see the actual game ...
0
votes
0answers
34 views

ssh x11forwarding not working , but only on debian8 [duplicate]

I recently installed Debian 8 on my workstation , witch before ran ubuntu 15.04 , but after Debian 8 came into my live , I have not successed running ssh with X11forwarding. case is: I have a server ...
-1
votes
2answers
47 views

best way to upload files(100gb+) from freebsd server

I need to upload lots of files(100gb+) from server, currently i get ssh connection, and i'm not restricted in software i can use and run anything. Please recommend me the way to upload files to my ...
1
vote
1answer
29 views

Is 2s a “normal” variation in ssh's execution time?

In my program, ssh "normally" takes around 0.3s, however sometimes it may take more than 2s. I wonder whether this is a normal variation for ssh's execution time, and whether there is some thing I ...
1
vote
0answers
26 views

Why does rsync -e 'ssh' work but not rsync --rsh=ssh [closed]

This works: rsync -P --partial -e 'ssh -p 12345' me@host:/path . This doesn't: rsync -P --partial --rsh=ssh --port=12345 me@host:/path . AFIK they're supposed to do the same thing. What have I ...
1
vote
2answers
28 views

Automatic Background Processes

I'm running my Raspberry Pi off an SSH server, and want to be able to access it out of home. Sure, all I need is an IP. But with my terrible internet, it's constantly dropping out. My IP is constantly ...
1
vote
1answer
26 views

Netcat not working as expected when executed remotely in a non interactive shell

I have observed many unexpected behaviour when trying to start netcat in listen mode remotely. 1. When following command is used : ssh root@198.18.40.13 'nc -l -k 80 &' I observed that the ...
0
votes
1answer
48 views

SSH client not trying my keys in ssh-agent

I'm on OS X Yosemite 10.10.5, and my SSH client is behaving in a way I can't explain or resolve. My goal is simply to connect to a server with: ssh -A core@12.34.56.78 When I add -v to this, I can ...
2
votes
1answer
59 views

n-factor SSH authentication for CentOS 7

How can I enable (and require) n-factor authentication for all SSH connections to a CentOS 7 server? I have read about Google Authenticator, which provides two factor authentication. But that is ...
2
votes
2answers
36 views

Using reverse SSH tunneling in one step instead of two steps (with -X)

Suppose we have three hosts: miki - my computer behind a NAT vps0 - my VPS mum - computer of my mother, behind a different NAT. The task is to connect from my computer to my mum and keep X11 ...
2
votes
0answers
26 views

Paste clipboard content without X

I'm sshing into ArchLinux machine from Ubuntu. I want to be able to copy some text from Ubuntu and paste it into a file in Archlinux from terminal. xclip doesn't work for me, because I'm unable to set ...
2
votes
1answer
36 views

No colour in MOTD

I recently bought a Raspberry Pi, and have started playing around with it. After changing my MOTD, (to include colours), the colour codes are coming up as raw-text instead of executing. I am ...
2
votes
0answers
14 views

restrict private apt repository with rssh - why does apt-get try /bin/sh?

I am trying to set up a private repository via ssh. My sources.list.d/ contains the entry deb ssh://user@host:/repo ./ user is a certificate only account on host. apt-get update works fine. ...
0
votes
2answers
39 views

How to scp self?

I want to scp from myself to myself, but am getting Permission denied (publickey) errors. This is more of a edge case of a script, but I feel like there shouldn't be an issue with it. ifconfig | ...
4
votes
1answer
38 views

using ssh and running a script in background

I am running a job that takes about 20 minutes in each server. However, all the servers can run this job at the same time. Here is my job: #cat mylist server1 server2 ... ... #for i in `mylist`; ...
2
votes
1answer
31 views

ssh forward multiple ports

So this works for me: ssh -v -L 8080:remotewebserver:8080 me@jumphost How about if I would also like to include more ports? I want to forward not only 8080, but also 8443, 8923 and 8181? Do I ...
0
votes
0answers
40 views

server1 ssh's to server2 but server2 sees server1 by it's private ip due to both servers being on the same firm/network

I ssh into server1 via it's public IP from server2. I then ask server1 what my IP is. i.e. server2's IP. It shows me server2's private IP. I want it to show me server2's public IP. If server2 was ...
1
vote
1answer
38 views

SSH Tunneling - Local and Remote Use Cases

I just learned the basics of SSH tunneling from googling. I saw this interesting question: How does reverse SSH tunneling work? But I still find it a bit confusing, more specifically on the ...
5
votes
2answers
310 views

How to allow direct root access via SSH on certain IP range?

I would like to login to root via ssh directly while at home (192.168.1.0/24). But while outside (e.g. at work), I can still login via ssh by using one of the custom accounts I created. I jus ...
0
votes
0answers
45 views

Is there a tutorial to set up a shared hosting server?

I can't find a tutorial on how to set up a shared hosting server. The part that I'm missing is the way privileges are set for the webmasters so that they don't see each others directories. ...
0
votes
1answer
40 views

piping a password located in a file to the ssh command [duplicate]

So I need to login as a lot of different users to a server using ssh and I'm tired of copying the password from the files, which contain the passwords for the users, each time. I can't change it to ...
3
votes
2answers
58 views

How do I list available host key algorithms for an SSH client?

So ssh has the option HostKeyAlgorithms. Sample usage: ssh -o "HostKeyAlgorithms ssh-rsa" user@hostname I'm trying to get the client to connect using the servers ecdsa key, but I can't find what ...
1
vote
0answers
39 views

Wireless ssh “issue” (No route to host)

I installed Debian Jessie (gnome) on one of my machines today and it went smoothly except for the wifi. Calling this machine A, I set up an ssh connection with machine B (using an rsa key) and then I ...
1
vote
1answer
31 views

A way to keep dotfiles and configuration with ssh

I'm using vim, tmux and zsh. I love those tools I passed a lot of time to configure those tools, particularly Vim. In my day to day job, I have to access to a lot remote machines. I use ssh to be ...
2
votes
1answer
59 views

SSH into a remote shell, execute a 'source' command, and stay in the remote shell

I've got a script, named s, on a remote server that activates a virtual environment like this: source venv/bin/activate When SSH-ed into the server, I'm able to activate the environment by . s ...
1
vote
2answers
66 views

Automatic login to multiple SSH root terminals

I am not sure if this is a security issue, or can be actually done. I would like to be able to boot up my PC, maybe run a program that will open about 5 shells, each SSH'ing to my local machine but ...
0
votes
1answer
35 views

tail file from remote server and nslookup on local

I need a script for resolve hosts. For now I run this script on local machine for i in `tail -F access.log | awk '{print $8}' | awk '{gsub("http://|/.*","")}2' | awk '{gsub("http://|:.*","")}1' | ...
0
votes
0answers
57 views

Putty Login error through SSH (Network error: Connenction timeout)

I am trying to login into one(X) server using putty (port 22), and it is showing Fatal Error in a pop-up with the message Network error: Connection timed out. But when I am in different server(Y) on ...
1
vote
2answers
54 views

Odd syntax for ssh and bash to run command

I'm pretty new to shell/bash scripting and I'm writing a script on OSX to automate some rather tedious efforts. I'm trying to run a portion of my script on a remote host using ssh. There's a common ...