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

learn more… | top users | synonyms

0
votes
0answers
23 views

How to fix system after wrong permissions?

I changed permissions on / by mistake using chmod -R 755 /* instead of ./* after doing sudo -s. I stopped the process in the middle of it after realizing what was going on. But it was too late. Now ...
2
votes
1answer
30 views

redirect output of command to /dev/null

I run the following line from my bash script in order to run the script /usr/run.pl on remote machines xargs -P "$numprocs" -I '{}' -n 1 -- perl -e 'alarm shift; exec @ARGV' -- "$timeout" ssh -...
0
votes
1answer
12 views

Expect Rsync with Double quotes

Below is my code: #!/usr/bin/expect -f set timeout -1 spawn rsync -arvz -e 'ssh -p 1690' --protect-args --progress /home/pappu/ 'backup@xx.xx.xx.xx:/volume1/56 - Backup Server/pappu' expect "password:...
0
votes
0answers
18 views

SSH using script not working , but normal ssh working fine

[fm@serv1 new_dir]$ . ./env_call.env [fm@serv1 new_dir]$ ssh ${serv2} "/tmp/new_dir/backup.sh ${env}" Permission denied, please try again. Permission denied, please try again. Permission ...
0
votes
5answers
872 views

How to make the script automated to take password on its own?

I have a script that is doing sftp some files from one server to another, like inside the script script.ksh I have the below lines; sftp user@ip_address << EOF cd path put file1 bye EOF When ...
1
vote
0answers
22 views

Why is it not possible to connect to my server using RSA from an Ubuntu machine?

I tried to connect to my server using ssh xxxx@xxxxxxx.xxx The result was: Unable to negotiate with xxx.xxx.xxx.xxx port 22: no matching host key type found. Their offer: ssh-dss Then I ran ssh ...
1
vote
1answer
2k views

Fail2ban with firewalld

I'm trying to configure fail2ban to block ssh from a local hosts. Fail2ban is install on CentOS 7 with firewall (Linux 3.10.0-229.4.2.el7.x86_64 x86_64 ). I have copied the jail.conf to jail.local i ...
0
votes
0answers
21 views

Create user who can only ssh and reboot machine [duplicate]

I have a problem when I want to create user for SSH and rebooting the machine only. What I did is I just created a normal user. But normal user can access other commands like reboot, vim, ps, etc. I ...
1
vote
0answers
21 views

Garbage characters when using serial connection over SSH connection with minicom/screen

I have a serial connection made with /dev/ttyUSB0 locally from my laptop to a cisco lab router and using minicom/putty/screen all work fine locally (hardware control: on, software control: off, 9600 ...
0
votes
0answers
19 views

key load error on trying to ssh to server

I get the following error when trying to ssh into a server running Mac OS X. The client is also running Mac OS X. ssh -v server.lmd.edu OpenSSH_6.9p1, LibreSSL 2.1.8 debug1: Reading configuration ...
16
votes
10answers
66k views

Automatically run commands over SSH on many servers

There is a list of IP addresses in a .txt file, ex.: 1.1.1.1 2.2.2.2 3.3.3.3 Behind every IP address there is a server, and on every server there is an sshd running on port 22. Not every server is ...
0
votes
1answer
54 views

Script wont return when executed via SSH

I am calling a script via ssh client like this: ssh root@host "su - oracle -c '~/bin/weblogic start'" The ~/bin/weblogic is a bash script that actually starts the web server in the background and ...
1
vote
0answers
48 views

How to send sudo password over pipe? [duplicate]

I need to replace existing sshd config on the remote PC and restart sshd, so I try to use this: cat /sshd_cfg | ssh user@192.168.0.47 "cat > /etc/ssh/sshd_config && service sshd restart" ...
4
votes
1answer
671 views

SSH server always available under heavy load

Is there a way my SSH server, and everything under it (including bash) can be always available under heavy load ? Maybe it could be some kind of a critical path, all in memory, with a dedicated CPU ...
6
votes
1answer
88 views

What does '?' represent under TTY

If you run ps in your terminal, you may see something like the following: What is ?? I'm ssh'ing into a Linux server, so I assume that it's just the sshd as it says under CMD, but I'm curious what ...
2
votes
0answers
46 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
14 views

How to execute my shell script on remote Ubuntu Server using Net:SSH Ruby library? [on hold]

I am simply trying to install RVM on my remote Ubuntu Server. So for that I create a shell script so that I can automate the full installation process. When I tried to connect to the remote ubuntu ...
1
vote
0answers
34 views

password fails over ssh, works locally

This weekend I really dove into unix and got a Arch installed on an old computer and got it to serve my website. So I'm a bit of a noob. Today I went to copy a database file from my Mac laptop to my ...
13
votes
2answers
12k views

How do I force a user to change a password at the first time login using ssh?

I'm trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did ...
2
votes
2answers
255 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 ...
3
votes
0answers
29 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
28 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
23 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
47 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
16 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
815 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
50 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
47 views

Gather data from 100 AWS servers [closed]

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
33 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
37 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
250 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
50 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
36 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
52 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
29 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
90 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
62 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 ...