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

learn more… | top users | synonyms

0
votes
0answers
13 views

bind: Address already in use: but no process using it

I would like to connect to a Linux machine (machine1) and forward port 5900 to a second one (machine2) $ ssh -L 5900:machine2:5900 root@machine1 -N bind: Address already in use ...
1
vote
1answer
12 views

Can not succeed in excluding user in match directive in SSHD config

I’m having a problem with my sshd config. I want to limit all users of the group www-user to sftp use. All of them but the user yorunokoe. I saw that related question : How to exclude from a ...
2
votes
2answers
168 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 ...
1
vote
0answers
24 views

How to evaluate commands on the given node of cluster by using plink?

Despite plink (putty link, which provides remote evaluation of commands on remote cluster by using ssh) is Windows application, I hope that You will help me in this question. I have the remote ...
3
votes
0answers
17 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 ...
2
votes
1answer
32 views

SSH login issue with two different user name

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
13 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
23 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 ...
-1
votes
0answers
35 views

How to write the shell script which check if the file is present on the cluster file system?

Suppose we have pscp on Windows, and remote control to Linux cluster through key key.ppk, the user and host is name@cluster.com. How, by using shell script (in cmd file), check if some file is present ...
-5
votes
0answers
34 views

fail to ssh on remote server

I am not able to login through below command. Here kkit is super user. As User kkit on server a ssh server b Error : connection closed by server b. But while using ssh -VV pbit@server b I am ...
6
votes
1answer
46 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 ...
0
votes
1answer
26 views

ssh with password get “access denied” error after assign the user to a different group [closed]

I ran into some problems with ssh. After assigning a user to a different group (User leon, Group developer), I got "access denied" error. And I tried to add "AllowUsers" and "AllowGroups" into ...
0
votes
1answer
19 views

Correct way to use Qemu terminal mode in Byobu via SSH [closed]

I'm trying to start qemu via ssh on a server without X11 installed, using byobu and these command: qemu-system-x86_64 -cdrom /backup/installer/archlinux-2016.05.01-dual.iso -boot order=d -drive ...
-3
votes
1answer
41 views

How ssh into CentOS virtualbox? [closed]

I use window 10. And I have already installed CentOS on virtualbox, on window 10. I want to login into ssh from my window to that CentOS virtualbox machine. Can you tell me a tutorial to doing this? I ...
3
votes
1answer
25 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
27 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
35 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
57 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
38 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?
0
votes
0answers
21 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 ...
1
vote
1answer
63 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
19 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) ...
1
vote
0answers
45 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 ...
0
votes
0answers
41 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") ...
0
votes
1answer
28 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
55 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
21 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
36 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
24 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
49 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
32 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
37 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
36 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 ...
2
votes
1answer
37 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
29 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
27 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
13 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
15 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
20 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 ...
0
votes
1answer
48 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
46 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
63 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
33 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 ...
-3
votes
0answers
38 views

Connection Immediately Closes after entering password when SSH into remote host/server

I've read through a lot of the other threads on this but the log from running the verbose command doesn't seem to match what other posts have said. azhu-mb15:~ Azhu$ ssh -v Azhu@flynn.ttr01.com ...
26
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
56 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
70 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
15 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
21 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 ...