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

learn more… | top users | synonyms

2
votes
2answers
242 views

Run a ping command on list of servers and output to a file

I have a file servers.txt on a different server, with list of servers: server1.mydomain.com server2.mydomain.com server3.mydomain.com I want to first download this txt file, ping these servers and ...
2
votes
0answers
29 views

ssh connection to OSMC fails after giving the correct password

I have a freshly setup Raspberry Pi 3 with OSMC; I can't login via ssh. I can open a shell when using my wireless keyboard, sudo -s works, and AFAICS, WiFi connection is fully functional, including ...
0
votes
1answer
18 views

how to get the standard output from command in variable

when we want to know what is the standard output of the ssh then we do ssh $linux_server "cat /proc/uptime" [[ $? -eq 0 ]] && ssh is ok but how to know the ssh standard output in case of ...
3
votes
0answers
25 views

SSH with chroot and only working “sftp”, “rsync” (both)?

I have two users and one shared folder in my Ubuntu server: User writer, which has write access to /var/shared. It's an application regularly making file changes in this folder from remote, with SSH ...
0
votes
2answers
23 views

SCP command keeps asking password

I've been struggling for days with this now and can't find what I'm doing wrong. I've got a website on a VPS server. Every night I make a backup of the database. It gets stored on my VPS server. I ...
1
vote
0answers
22 views

Shell Hangs After Running cd, ls, vim over ssh

I'm logging onto a computer cluster over ssh. The problem is I can't do much more than that. Whenever I run things, eg: vim, cd, ls the cursor just hangs there and nothing else happens. I've heard ...
2
votes
1answer
2k views

ssh tunneling: connection closed by foreign host

I'm trying to create a scenario to test a simple ssh tunneling, just for using a simple telnet. I have two hosts: ubuntu and suse. Both of them have the other hostname on /etc/hosts file for address ...
0
votes
1answer
25 views

SSH DNS lookup on local IP addresses [duplicate]

As I have come to understand, SSH always goes through the process of reverse DNS lookups whether you are connecting to user@example.com or a local server calleduser@192.168.0.56. I do not know, ...
0
votes
1answer
44 views

SSH takes too long to ask for password

I've seen many other questions on this subject but none seem to actually solve my problem. Like any other day, I connect to my LOCAL Raspberry Pi server from my client machine at 192.168.0.5 with ssh ...
13
votes
2answers
7k views

Tail log file on multiple machines over ssh

I'm trying to tail a log file on multiple remote machines and forward the output to my local workstation. I want connections to close when pressing Ctrl-C. At the moment I have the following function ...
0
votes
1answer
15 views

How can I forward multiple ports in the SSH configuration with LocalForward?

I want to forward multiple ports. So far my configuration looks like this: Host myhost Hostname 123.123.123.123 IdentityFile ~/.ssh/id_myhost LocalForward 8811 localhost:8811 ...
1
vote
1answer
1k views

CentOS with AutoSSH, Port Forwarding Clarification

I'm using autossh and set it up like shown in the following example: http://surniaulula.com/2012/12/10/autossh-startup-script-for-multiple-tunnels/ I found it works really well, but need some ...
3
votes
1answer
805 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
1answer
47 views

Remote docker over ssh tunnel

I have been testing docker. Due to strict firewall policy that blocks all ports except the ones necessary, I bind my docker clients to local ports and use ssh tunnels to access them remotely for the ...
-2
votes
1answer
39 views

Gather data from 100 AWS servers [on hold]

I have 100 servers running on AWS. I need to easily get how much data each user on the remote systems are using and output it to a text file. How could I best accomplish this?
1
vote
1answer
986 views

Terminal colors putty raspbian

I'm connecting to my Raspberry Pi from my Windows Machine using putty. I already adjusted the colors for bold blue in putty to be more readable (using this guide). But I still have problems with the ...
1
vote
2answers
32 views

Autocomplete hostnames when using SSH within history file

I'm looking for a feature that help me to autocomplete the servers I "sshed" in sometime and are in my .bash_history file without messing with known_hosts file or /etc/bash_completition, just grab ...
0
votes
1answer
29 views

SSH Tunnel “channel x: open failed: connect failed: Connection timed out”

I've Googled and searched far and wide for some sort of "solution" to this problem; however, the best answer I got is "There's nothing that can be done." Of course, that's unsatisfying, so here goes: ...
1
vote
1answer
238 views

Use HAProxy to tunnel SSH through https

I have a server with Apache webserver on it and many websites running on http (port 80) and https (port 443). I would like to use a proxy on port 443 in between Apache and the user. In this page, ...
-2
votes
1answer
23 views

How do I ssh my Mac from another server? [duplicate]

I want to ssh my iMac at home from my MacBook when I'm away, but I can't figure out how to ssh when I'm not on the same local network. I have configured my iMac to accept ssh through the "Remote login"...
2
votes
1answer
47 views

constant “enter passphrase for public key” by ssh

What could be the reason that ssh < host > is asking for public key password Enter passphrase for key '/home/%d/.ssh/id_rsa.pub': even if provided a good password? I have no problem with ...
1
vote
1answer
50 views

Adding user to ownership in addition to another user [closed]

I had some problems with permissions, the programmers of my website wanted me to add the admin user to the apache group and then set some permissions. My knowledge of Linux is quite limited, so I ...
1
vote
1answer
3k views

How to execute Netscaler commands through a remote machine via SSH connection

I have been trying to execute some NetScaler commands like "bind" & "unbind" through a Linux Box via an SSH Connection. Now the Problem is, Manually we are able to enter & execute commands on ...
0
votes
4answers
2k views

Script SFTP with password - HP-UX

I would like create a script in HP-UX to send in sftp with password. I have this command sftp -o PasswordAuthentication= but if I answer yes or no after, I have this issue "Host key verification ...
0
votes
0answers
32 views

running iperf over ssh

I'm trying to benchmark the network connection between 2 ubuntu servers on which I don't have root privileges. I did manage to download and start iperf-2.0.9 on both boxes. My problem is I can't ...
1
vote
1answer
41 views

unmanaged vps centos6.4 need to open port 20/21

I brought an unmanaged vps which is running Centos 6.4 and the only port which was open was 22. I need help opening port 20 and 21 so I can ftp, but every time I try to it won't save and let me login ...
0
votes
4answers
1k views

Permission denied when run script via ssh

I wrote script which download via scp and install some packages. SSH keys are added to host and when I run [root@HostB ~]# ./myscript everything is ok and packages are downloaded via scp without ...
3
votes
0answers
51 views

openSSH login slow for one user but not others

I'm running a server at home with Ubuntu 14.04. I have two users on the machine, say user1 and user2, each able to ssh into the box. While user1 logs in very quickly, user2 takes about 20 seconds to ...
1
vote
1answer
28 views

parallel file copy using tee unexpectedly slow

we're copying a large zfs snapshot (zfs send) from site-1 to site-2. site-1 and site-2 are remote, and are connected via IPsec (read: slow) on site-2, we need the data on two different zfs servers. ...
1
vote
1answer
2k 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
0answers
87 views

successful ssh login but no prompt

I'm going to connect to my university cluster with ssh. Login is successful but it doesn't show the prompt line, it just shows a blinking coursor. I could connect to ssh before and it was working fine,...
0
votes
1answer
17 views

Unable to download data using curl for loop

I'm trying to download data from the following link export ICTP_DATASITE='http://clima-dods.ictp.it/data/Data/RegCM_Data/EIN15/1990/' These are the codes : for type in "air hgt rhum uwnd vwnd" do ...
1
vote
1answer
61 views

For some reason “sudo ssh -w any -o Tunnel=ethernet root@remote” creates tun devices instead of tap devices

To connect multiple tunnel endpoints to a common bridge interface, I have to create a Layer 2 tunnel over ssh. The server is Ubuntu 10.04, the client is Ubuntu 14.04. I have enabled PermitTunnel yes ...
2
votes
2answers
45 views

Dialog Script break sequence

I am trying to create a console based menu for sshing to devices within our network, but I don't want the user to be able to break out of the menu. Would dialog work in this case? If not do I have any ...
0
votes
3answers
35 views

How can I create a virtual serial port that relays data over ssh?

I have a serial port on a remote linux box which I can access over ssh. I would like to create a file (not a real file, maybe a device file or unix domain socket?) which when written to writes to a ...
0
votes
1answer
19 views

How to restrict restrict remote administration software to one domain name?

I currently have a server hosting a number of websites on a debian server. I understand that all my domain names share the same IP so any of them will grant me access through SSH, but I was wondering ...
2
votes
1answer
24 views

Difference in ssh/scp host resolving and network reachability

I've got a virtual machine running on KVM on my localhost. I can ssh into it without problems using hostname (entered in /etc/hosts) or the IP address. With: scp root@remote:/somefile root@localvm:/...
2
votes
1answer
47 views

Does mosh save bandwith?

The mobile shell claims many benefits, especially with mobile connections. Many mobile plan prices scale with the amount of data transferred. So I wonder whether I can use Mosh to cut down in data ...
0
votes
1answer
305 views

Running “gnome-session” or “gnome-panel” over SSH via X yields black bar

I can VNC fine to my machine. But VNC is slow, and to try something else, I wanted to use gnome-session or gnome-panel over SSH via X. But it simply gives me a black bar across the whole screen. No ...
3
votes
6answers
18k views

SSH: “Server refused our key” with no reason

I was trying to set up a simple backup script to run automatically that would copy a file from a Windows machine to a Linux one through SSH. As a lot of simple online tutorials suggest I used pscp ...
0
votes
0answers
18 views

Echo variables sshpass [duplicate]

I want to do sshpass to a server to get lots of information from it. But as some logic will be involved, I tried to create a variable inside sshpass and echo to the client (first test). It is not ...
3
votes
4answers
2k views

Non-interactive shell expand alias

I'm having trouble getting aliases to expand on my hosting account when I run a command like: ssh user@server "bash -c \"alias\"" My .bashrc file is: echo .bashrc # .bashrc shopt -s ...
2
votes
1answer
1k views

SSH: Permission denied, please try again [closed]

I need to connect to a server and don't know whats going on: me@pc:~$ ssh -v server OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /home/me/.ssh/config debug1: /home/me/....
24
votes
2answers
81k views

how to connect ssh 'with' specified port?

I know how to connect 'to' a certain port when ssh'ing. ssh user@remotehostip -p XXX but is there a way to establish a ssh 'with' a certain port? I mean, is there a way to specify the port which ...
0
votes
2answers
38 views

Can't SSH (connection refused) [closed]

I'm trying to set up a headless machine running manjaro. I install and enable openssh, and can ssh localhost, but can't ssh by another machine. Plus, if I modify the /etc/ssh/sshd_config I cannot even ...
1
vote
2answers
2k views

SSH Connection Refused In CentOS?

For a week, SSH was working perfectly. Today I restarted my server and I got this error in my Mac terminal: ssh: connect to host 162.243.7.7 port 22: Connection refused This is very odd... I am ...
0
votes
1answer
697 views

ssh connection fails after login at one user [closed]

Have server with 2 users - (e.g. - user and root). SSH login to root works corrctly. But I can't login to user - it immediatelly fails with "write failed - broken pipe" after login. ssh -vvv user@...
-1
votes
0answers
19 views

RouterOS can't be installed on KVM hypervisor [closed]

I have installed KVM + Virtualizor on my Dedicated Server. I want to install RouterOS on a virtual machine. To do so, I created a virtual machine and mounted the RouterOS's iso file then started the ...
3
votes
1answer
34 views

Capture output (sdout/stderr) of SSH port forwarder

I would like to store the error below in a variable: ssh -M -S /invalid/path/forwarder.socket -fnNT -Llocalhost:6301:remote_server:22 proxy_server muxserver_listen bind(): No such file or directory ...