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

learn more… | top users | synonyms

1
vote
2answers
29 views

Does `ssh -D` proxy DNS request?

Is DNS resolution tunneled to the other end when I use a SOCKS proxy created with ssh -D? I have read the manual, searched the Internet, and found no documentation relevant.
0
votes
1answer
33 views

SSH key works on NIS server, fails on NIS client

I am trying to set up public key access to a couple of machines that I have a user account on. What I did: I used ssh-keygen to generate a key pair (without a passphrase) on my personal computer ...
0
votes
0answers
41 views

SSH Public key fails when using Reverse SSH Shell

I have a machine behind a NAT, which I would like to access via ssh. Lets call this machine A. I have machine B, which is publicly reachable, which I would like to route my ssh connections. I have ...
3
votes
3answers
65 views

How to remotely connect to a computer via ssh which is behind a wireless router? [closed]

At present, I'm using the wireless router TP-Link WR740N. I have tried the following two solutions in order to connect to my host computer, which is behind the wireless router: Use the "virtual ...
1
vote
1answer
101 views

Is there a canonical method to restrict ssh access to certain IP addresses in Unix?

I checked man pages related to ssh on OS X and other systems and tried using hosts.allow and hosts.deny files as per this post, and sshd_config to no avail. $ cat /etc/hosts.allow sshd: ...
1
vote
0answers
36 views

Backing up VPS via SSH/SFTP

I'm going to perform some maintenance on my VPS (Ubuntu Server 15.04), and I would like to back up some files before doing so. The problem is that some of these files are under other users' home ...
0
votes
1answer
79 views

“Invalid MIT-MAGIC-COOKIE-1 key” when trying to run program remotely

I am attempting to run an application (ParaView) in client-server mode with its graphics rendering being done on the remote (server) end. I am using SSH as my means of connecting to the server, but do ...
0
votes
2answers
39 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 ...
2
votes
1answer
30 views

ssh port forwarding without logging in

I am forwarding a port of a remote server to my local mac as follows: ssh -L 15672:localhost:15672 me@example.com When I do this in a shell, I am also logged into example.com. Yet I would like the ...
1
vote
3answers
75 views

How to use SSH to move a file from Ubuntu to Windows?

I am logged onto a windows machine. I am using Putty to login to an Ubuntu machine on the same network. Now I'm trying to move a .c file from the Ubuntu machine, to the Windows machine, edit it there, ...
0
votes
0answers
23 views

Very slow SSH connection unrelated to GSSAPIAuthentication option

I am having trouble connecting to remote machine through SSH machine (I cannot change SSH configuration on that machine though I can login without any delay from other machines). I have commented out ...
-1
votes
1answer
27 views

Problem with sftp

i am facing issue while ftp using the command file, but i don't face the executing using the manual execution of commands.. i need to ftp while connecting to ssh machine, the command file is ...
1
vote
1answer
122 views

Why SSH login works in shell but fails in all third parties via ssh tunnel?

I'm using ssh to log in (prompt password first time) on a remote server. In shell, using this command: ssh root@myserver.com works well! But all other db software applications that I tested ...
5
votes
2answers
195 views

What are .serverauth.##### files in my home directory?

The files are .serverauth.##### where ##### is a 5-digit number. I have a handful of these files in my home directory with a broad range of creation dates spanning a couple of years. What are these ...
0
votes
0answers
33 views

Chroot SFTP read only user + admin read/write user

I currently have a ssh-server setup which has users with read/write access jailed to their home account. The need has now changed and I now need the home directory user to have jailed read only ...
0
votes
1answer
69 views

ssh secure shell: “connection closed by remote host”, not acquiring the key

I am very new to using this ssh secure shell to access a remote workstation. This is the third time I have received the message: Server responded "Connection closed by remote host". The ...
3
votes
3answers
37 views

Can I change terminal type used to login through SSH?

When I login on some particular server through SSH (which I do not have admin access to), I get the following error: urxvt-unicode: Unknown terminal type (I also don't want to change my terminal type ...
1
vote
1answer
46 views

Xming wont start if running as super user

Scenario: I am attempting to run WireShark through xming server located on a windows 8.1 machine off of a Raspberry Pi B+ that is hardwired to a Wifi Pineapple Mark 5. Xming successfully launches ...
2
votes
0answers
35 views

Using autossh to create a persistent, multiplexed ssh connection without any port forwarding?

I want to use autossh to maintain an ssh session configured for multiplexing. This way I can write scripts on my localhost that take advantage of the persistent ssh connection. I'm having trouble ...
0
votes
0answers
63 views

Installing Docker into Vagrant VM failed

I'm using Vagrant and Docker and this problem occurred while i vagrant up my machine, it works fine before: ==> default: Running provisioner: docker... default: Installing Docker (latest) onto ...
0
votes
1answer
23 views

start process from ssh and be able to close connection [duplicate]

I'm connecting to my RaspberryPi with Raspbian installed via ssh and my problem is, that I can't let the RasPi do things (installing software, make calculations) while my Computer is shut down, since ...
1
vote
1answer
47 views

Tar and download in one step over ssh / scp [duplicate]

(This seems like an obvious / common question, but I couldn't find it when searching - maybe I wasn't using the correct terminology...) I want to login over ssh to a remote machine, tar a directory, ...
0
votes
0answers
30 views

Configuring tun0 and tun1 IPSEC interfaces

I'm trying to make two IPSEC tunnel interfaces in order to make a bonding but i don't know how to start it since i can't find any tutorial showing something similar. Can anybody gives me an indication ...
0
votes
1answer
86 views

How to ssh between lxc containers

I have an Ubuntu host running Ubuntu lxc containers. Whenever I try to ssh between containers, I get: root@master02:~# ssh root@slave01 -vvv OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading ...
1
vote
1answer
37 views

Passwordless ssh login on Mac OS without -i option

I have a ssh key without a password to login to a remote system. Let's assume the remote server is called server-name and has the same user as the one I'm currently logged in. In the console if I do ...
1
vote
1answer
82 views

How to set up chrooted and non-chrooted sftp?

I am trying to set up my Openssh server to allow for chrooted sftp-only users as well as for non-chrooted sftp and ssh users. My condensed (comments and blank lines removed) /etc/ssh/sshd_config looks ...
0
votes
1answer
80 views

Run script on multiple hosts [duplicate]

I have below script which creates user list and also filters ignore.txt file to ignore matching usernames. I would like to run this script on multiple hosts like hostA, hostB, hostC. Like if I run on ...
1
vote
0answers
22 views

Correctly closing multiple hop SSH tunnel

I want to tunnel VNC traffic to host2, which is only accessible from host1, whereas host1 is publicly accessible. I setup a multi-hop SSH tunnel as described in this question, using: ssh -L ...
1
vote
1answer
39 views

Use the -i option on ssh/scp

I would like to setup the ability to log into my redhat server by specifying the -i option on ssh or scp command line. I have followed the steps according to google but it doesn't appear to work. ...
0
votes
1answer
36 views

ssh with command loses tab-completion

I have a handy alias as follows: sshpass -p "the_password" ssh -o StrictHostKeyChecking=no root@192.168.0.123 That will give me a quick way to login to a remote device, and get a command prompt ...
3
votes
1answer
53 views

Is there limit to nested ssh sessions?

In my workflow I frequently have to open several chained/nested (?) ssh sessions to get where I need: ssh to remote management server Escalate privileges (sudo su ...) Ssh to another remote ...
1
vote
1answer
46 views

Zones are in SUSPENDED mode in Oracle Solaris 11.2 SPARC

Zones are in suspend mode how can I bring them up online? Operating system: SunOS xxxxxxbase02 5.11 11.2 sun4v sparc sun4v While listing the pool in global zone I can see four hosts are in suspend ...
2
votes
2answers
56 views

Increasing Productivity When SSH into Multiple Hosts [duplicate]

I work in operations and need to be able to log into multiple servers among a few hundred servers in a productive way. What I mean by productive is this: from the time from when someone asks me to ...
1
vote
1answer
19 views

Why is sshd getting restarted when yum cron starts?

I have a new server build (Centos 6.6), and have yum-cron installed and running in cron.daily. In looking through my messages and secure logs, it appears that right after yum starts updating and ...
1
vote
1answer
40 views

ssh 3des private key encrypt and decrypt

i have converted my ssh private key with 3des encryption openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa how do I remove encryption and get the old key?
2
votes
0answers
44 views

Tunnel audio chat over ssh

I'm running a HelpDesk for internal call center employees. Right now, we can chat with employees over our web portal and remote-control their Linux Mint workstations via VNC over a secure SSH tunnel. ...
2
votes
0answers
32 views

Toolbar icons unable to load when running Emacs through xhost from FreeBSD to Ubuntu

I'm connected to a FreeBSD Computer using ssh [ip] -X, and emacs launches just fine, but this happens and all the icons are little pieces of paper with red X's: > emacs (emacs:22812): ...
0
votes
2answers
37 views

Exclude the output from ssh and only log the error if found

typeset -f | sshpass -e ssh -o StrictHostKeyChecking=no user@${IPADDRESS} " $(cat); IFERROR=$(checkscript); echo "$IFERROR"" > ${SSHTEMPFILE} 2>&1 This line...I can't exclude the ...
3
votes
1answer
58 views

How does rysnc work over ssh?

When the rsync program is invoked over ssh what does the interaction between rsync and ssh look like? What feature of ssh is rsync using? I am interested in the interaction between rsync and ssh.
1
vote
1answer
47 views

Can't push git updates & run Unix commands when connecting via SSH

I have installed java 8 on my bluehost VPS. I have followed http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ instructions . In order to add directories to PATH variable I have added ...
2
votes
0answers
38 views

ssh terminating immediately with message Terminated

I have tried following command on my local system (Ubuntu 14.04 LTS): $ ssh localhost The authenticity of host 'localhost (127.0.0.1)' can't be established. ECDSA key fingerprint is ...
1
vote
1answer
63 views

Channel 0: open failed: administratively prohibited: open failed

I was doing this tutorial, but when it comes to the part where O should run these commands: local-server# ssh -NTCf -w 0:0 87.117.217.27 local-server# ssh -NTCf -w 1:1 87.117.217.44 It says: ...
2
votes
1answer
34 views

Identify SSH public key on remote end's shell session (no agent or no identities in agent)

I know this way to find out which key was used to authenticate when using keys stored in a key agent: ssh-add -L 2>/dev/null | awk '{print $1}' | while read identity; do grep -v '^#' ...
1
vote
1answer
76 views

ssh with -Y results in “shell-init: error retrieving current directory: getcwd: cannot access parent directories…”

I ran an X app sudo'ed from my normal account, using: mylappy$ ssh -Y me@myhost.com me@myhost.com's password: [me@myhost ~]$ sudo su - [root@myhost ~]# su - me -c 'xauth list' |\ grep `echo ...
2
votes
3answers
98 views

How to limit the number of active logins per user?

How can I limit the number of active logins per user? I've seen this on various servers before, and I was wondering how I could set this up myself. Perhaps in those cases, this was accomplished by ...
2
votes
1answer
33 views

terminal hang when lost connection and ssh is on

when I ssh to a server over the internet in a gnome terminal tab, if I lost internet connection, the terminal tab will be hang and not accept any input. Why is it hang? Is there some way to activate ...
-2
votes
1answer
76 views

SSH error: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

I ran rsync (cygwin) and got this error. I think they changed the Red Hat Linux OS from version 5 to version 6, last night. Would that be the cause of this error message? What do I need to do to fix ...
1
vote
4answers
55 views

What it the min/max port range for SSH?

I want to change my ssh port from 22 to something else. What is the port range I can change it to? Also, I dont want it to conflict with other apps that use common ports. What ports should I avoid?
1
vote
2answers
55 views

Do I need to keep an SSH session alive for cron to run?

I know about nohup. It prevents processes from dying after a hang-up. What I want is my user crontabs to run even if my session has timed out when they are supposed to run. I believe I need the user ...
2
votes
1answer
87 views

Best way to connect to an existing user context through SSH

What we would like to do: We have short living virtual machines for running scripts. The virtual machines are used through SSH to perform "builds" (sequence of scripts) and discarded once all the ...