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

learn more… | top users | synonyms

4
votes
1answer
29 views

Determine which server is the best choice for high resource-consuming task

I have a time and resource consuming task I am running every once in a while (make), which can be run on any one of a servers pool. Problem is, I am not the only user running make, and when two or ...
3
votes
1answer
65 views

SSH login issue with two different user names

I'm facing a login issue with SSH (dsa), here the scenario: On my host I've created ssh keys for the user dx and set permission of .ssh and id_dsa and id_dsa.pub I sent the public key to the remote ...
1
vote
0answers
25 views

Vagrant ssh closes connection after executing -t option

I'm trying to create a script that will bring up my vagrant VM (a Ubuntu box hosted on OSX) navigate to the correct directory and start up my virtual env. I've read that this command should work for ...
1
vote
0answers
27 views

can two android devices in different network(3g) comunicate themselves with ssh connection?

I have two rooted android devices with different isp(i use different 3g connection for them) and created a double ssh connection(i can with a public ip server)comunicating both to this server(i have ...
6
votes
1answer
73 views

Why does SSH add a known_host entry for an IP address?

I have a host named nms.example.org. In my /etc/ssh/ssh_known_hosts I have an entry for the host with the RSA key. This entry, and all the other entries are managed by my configuration management ...
3
votes
1answer
33 views

.ksh session hangs after being inactive

While remotely connecting to a Linux machine using ssh, my .ksh session hangs after being inactive for sometime. If I try to type or ctrl-z, the prompt does not respond. Is there a way to restore my ...
0
votes
1answer
52 views

reverse tunnel on a multi hops ssh tunnel

I'm a windows user, that needs to access his server at home using a double hop ssh tunnel. I've configured via putty, a socks tunnel on a 2 hops ssh connection using a dynamic port, based on this ...
1
vote
0answers
37 views

Locked myself out of Amazon EC2 [duplicate]

I'm working with an Amazon EC2 instance and at some point, I wanted to chown a directory recursively, and it looks like I applied the command to the whole file system. As a result, it is possible that ...
1
vote
4answers
64 views

execute command over ssh connection [duplicate]

I want to excecute the following command over a ssh connection: tmpValue=$(cat /var/run/jboss-as/jboss-as-standalone8.pid) && top -b -U jboss -n 1 |grep $tmpValue |awk '{print $9}' This ...
3
votes
3answers
45 views

Can I re-direct an existing (entire) gnome-session's display to a remote work station?

So instead of using VNC for example - I could actually run a command on my home-fedora terminal and have my work-fedora existing gnome-session appear at home?
1
vote
0answers
30 views

ssh cant copy key with hamachi

Trying to make ssh work with hamachi networked computers, as a solution for NAT and SPI firewall routers. Ping works, ssh-copy-id refuses to add key. user@c4 ~/.ssh % ssh-copy-id -i id_rsa.pub user@x....
1
vote
1answer
81 views

Why grep on remote system says file or directory not available

I'm trying to run a grep command on remote system to give me the result for May 22. But reply comes /bin/grep: /var/log/Clients_Logs/127.0.0.1/*: No such file or directory But when I specifically ...
0
votes
0answers
40 views

ssh doesn't let you change your password ,if expired

abc@xyz:~$ ssh root@178.63.93.31 root@178.63.93.31's password: You are required to change your password immediately (root enforced) Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64) ...
2
votes
0answers
72 views

Is an SSH connection timeout expected when iptables is set to REJECT?

We’re setting up a firewall for a machine that should allow: incoming SSH connections from particular IP addresses; ICMP, except for redirect. We’ve opted to use REJECT over DROP, at least until ...
1
vote
0answers
58 views

scp and rsync not working when executed within .sh files from “startup programs window”

With Ubuntu Mate 16.04, I have a file my_backup.sh like this: # Log just for trying echo $(date) >> /home/albert/dia_hora # BBDD NOW=$(date --date="yesterday" +"%d") FILE="...
0
votes
1answer
32 views

SSH connection to a router from Server [closed]

I tried creating SSH connection to a router . SSH works fine . The following scenario was tried . Created ip address to an interface in router and added SSH configurations to this interface . Made ...
1
vote
2answers
132 views

Unable to scp in Jenkins

I'm a new user of Jenkins.I'm trying to run a shell script as part of the build step in Jenkins. This script has a scp command which transfers a .tar file to a remote server. Although when I run this ...
0
votes
0answers
34 views

SSSD can look user up but not auth them (active directory)

I have a very strange issue which has me stumped. I have setup a new environment using an existing Active Directory. When the environment was first setup SSSD worked perfectly, but all of a sudden it ...
0
votes
1answer
37 views

How to forbid ssh connection after sudo -u

After ssh login, user with UserName makes $ sudo -u localusername -i and $ ssh localusername@someserver How to forbid ssh localusername@someserver for UserName via sudo -u localusername but permit it ...
1
vote
1answer
46 views

How to rsync files between two remotes with an explicit port and different usernames?

I want to rsync files between two remote servers. I tried to follow the next solution of @roaima: http://unix.stackexchange.com/a/183516/137526, but I need a more delicate solution, for two reasons: ...
1
vote
0answers
53 views

Raspbian Jessie Lite “Factory Reset”

I am currently remoting offsite to my Raspberry and since I think I messed up all packages and configuration files I would like to return to default settings before installing all the packages and ...
1
vote
2answers
82 views

SSH connection to specific server refused

I have an ubuntu Server in Digitalocean. Normally, I can connect this machine with SSH but while I'm connected to my school network, when I wrote ssh root@IP , it freezes and never even ask my ...
0
votes
1answer
43 views

User “read” command while executing remote scripts over ssh

Let me explain my situation first. I have an alias in .bashrc: doscript () { ssh root@server$1 -p2202 "bash -s" < ~/scripts/$2 $3; } I have a script, that basically consists of several actions ...
0
votes
1answer
44 views

SFTP SSH users use from two hosts connecting same server

Can I have two SFTP SSH clients using same ssh user name but different public/private keys connect to a target server, the server has both the public keys configured? Currently from one of the client ...
1
vote
1answer
61 views

X11 forwarding via SSH and su

For me, it is weird that while using ssh connection with X11 forwarding, a user and root are able to see xclock, but another user is not able to see that. Why? mahmood@cluster:~$ xclock ^C mahmood@...
2
votes
1answer
41 views

Why are some pts in AIX never reused?

In an AIX system (AIX p740 1 7) that is running for about several months, some pts aren't reused anymore. This was noticed using the "who" command, with the following "awk" expression, running it ...
3
votes
1answer
31 views

How to limit connections to OpenSSH server to using private keys necessarily with passphrase?

Is there any way to configure OpenSSH (/etc/ssh/sshd_config) server to allow private keys necessarily with passphrase?
1
vote
1answer
30 views

change home folder permissions on exit/disconnect

I have a use case where my folder on the linux server needs to have its permissions opened up so I can use a sudo account to move files from my folder to shared folders. What then happens is often ...
0
votes
1answer
28 views

remote connection config in terminator

I'm using terminator and would like it to start up pre-configured with remote connections established, I do achieve this by setting ssh user@host in the command = field in ~/.config/terminator/config ...
3
votes
1answer
31 views

How do I make GPG use keys accessed over SSH?

I have my GPG keys stored on a remote server (accessible via SSH) due to some technical constraints. Is it possible to make GPG use those keys transferred over ssh, without actually copying them ...
0
votes
1answer
27 views

Socat not cleaning up cleanly after itself via ssh

I am trying to talk to a machine that is connected to my local machine, using ssh, socat, and another utility I made. On source machine I am doing: ssh root@localhost -p 2004 'socat -u TCP-LISTEN:...
0
votes
1answer
302 views

PuTTY (SSH) (tracert) Network error: Software caused connection abort

EDITED: SOLUTION FOUND: After contacting godaddy, a solution was found very fast (great service!). What seemed to be the problem was that my IP Address was being blocked, given that I had too many ...
0
votes
1answer
64 views

I have to restart sshd every time I reboot

I have an arch machine that I use as a local server. It used to be that every time I rebooted it (which was not often), I had to login and enter # dhcpcd net0. After that, I could ssh into it from my ...
2
votes
2answers
87 views

Getting the date from a ssh client

I have a problem with an embedded computer where it does not have a separate Real Time Clock and as such every time I reboot it, it loses track of the current date. This is very annoying because lots ...
0
votes
0answers
44 views

Cannot ssh into server through VPN

I'm trying to ssh into my university server via vpn (PPTP). I'm on an Mac OSX 10.11.4. (El capitan) Unfortunately, I get the following error: Adams-MacBook-Pro:~ adamG$ ssh gadam@xxx.xx.xx.ac.uk ssh:...
27
votes
3answers
1k views

Do programs run from an ssh session depend on the connection?

Does a program that is run from an ssh session depend on the connection to the client? For example when the connection is really slow. So does it actively wait until things are printed on the screen? ...
0
votes
2answers
157 views

Server refused public-key signature despite accepting key - putty

I used puttygen to generate both my public and private key files (ssh2, 2048 bit). I have set up the settings in putty correctly and it is using the correct private key file. As for the public key, (I ...
-2
votes
2answers
80 views

How can I repeat a Linux command every minute? [duplicate]

I'd like to get a Linux command which runs in the background and writes something to the terminal screen every one minute. I am trying to keep ssh session alive, I am using Cygwin for connection to ...
0
votes
0answers
20 views

BindAddress in ssh config on laptop

I have a section in my ~/.ssh/config for connecting to a server via IPv6. But as I have enabled privacy extensions for IPv6 and to avoid my ssh connections being cut I've added BinAddress to that ...
2
votes
1answer
22 views

Extract SSH server key from server itself

In order to connect to an SSH server, it must be listed in known_hosts. Is there some command that I can run on the server which will generate the text that needs to be put into this file? (Surely ...
0
votes
1answer
83 views

ssh/git does not use GUI to ask for password after upgrade to to Ubuntu 16.04

I used to run Ubuntu 14.04 on my computer. Whenever I used ssh keys to log in to various servers, I used to get a GUI pop-up dialog asking me for the password for my key. After entering the password ...
0
votes
2answers
80 views

How to run a shell script on 10 hosts simultaneously? [duplicate]

Currently I am monitoring 10 hosts. I want to write a script which will calculate the disk space in every 24 hours and then if the file system of a host is critical for any host then it will move the ...
5
votes
3answers
419 views

How to recursively uncompress gz files on a remote host with limited commands?

I have a bunch of .jpg.gz files in a directory that I need to decompress. I know that the decompress command is: tar -xzvf FileNameHere.jpg.gz But is there a flag that you can recursively ...
0
votes
1answer
38 views

High time until SSH asks for password

I've been noting recently that any host that I ssh to in LAN, waits like 5 seconds before asking for password. ping sometimes also waits, but less(like 2 seconds), but it shows it has resolved the ...
0
votes
1answer
110 views

SSH connection giving Connection refused error

I am using CentOs. I can SSH from local machine to server A. I can also SSH from local machine to server B. But I cannot SSH from server A to server B: $ ssh -p <portB> root@B root@B's ...
2
votes
2answers
97 views

SSH only works if I specify the key with -i

I have a server that only allows ssh with a key. However when I try to ssh to this machine I get the error "Permission denied (publickey)". From the auth.log on my server this is happening pre auth. ...
0
votes
0answers
42 views

how to manage stdout/stdin buffering while doing ssh using openssh?

I have an embedded system -Linux, which has openssh utility - Linux. I am trying to do ssh from first device to second device and from second device to the third device. When I am doing the second ...
0
votes
2answers
43 views

One shell script to perform commands locally and remotely

So, here's the problem. I have a file on a remote machine available only to root, and a private-key-only no-root SSH access(I do have sudo though). I need to copy that file to the local machine, and ...
0
votes
0answers
12 views

sending SIGTERM to autossh causes it to restart child instead of killing child and then quitting

autossh -f -N -n -M 0 -L 32000:localhost:32010 -p 22 user@server That is the command I'm using, and it works fine. However, sending SIGTERM via kill -TERM $pid to the autossh process causes it to ...
3
votes
1answer
55 views

restart X11/Xwindows without disconnecting ssh session

Is it possible to restart an X11/Xwindows session without having to exit the server I've SSH'd to? I'm currently using iTerm on OSX, and every so often X11 (I guess) times out (giving me the error ...