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

learn more… | top users | synonyms

1
vote
1answer
17 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
23 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
52 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
16 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
27 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
32 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
42 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
28 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
46 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
17 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
20 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
27 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
13 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
25 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
46 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
17 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
30 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
19 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
33 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
28 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
67 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
26 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
51 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
52 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
49 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
74 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 ...
0
votes
1answer
71 views

How to get rid of “\r” a the end of the line comming from pipeline in bash

#!/bin/bash sourcenode=$1 destnode=$2 path1=/root/test ssh root@"${sourcenode}" -t "echo "${path1}" | xargs -IDIR find DIR " | while read line do ssh root@"${sourcenode}" -t "stat -c "%a" ...
3
votes
0answers
73 views

SSH always refuses first connection attempt

There's an AIX box where I work and so I've not got any root access to it. When I connect to it using telnet I can get on fine. When I connect to it using SSH if I put in my correct password on the ...
1
vote
2answers
45 views

how to use ssh command to connect to multiple computers and send different commands to each computers at same time

I need to connect multiple computers to run different programs. For different computers, I need to send them different command. How to use ssh command to connect to multiple computers and send ...
2
votes
2answers
23 views

Use a dynamically obtained hostname with an ssh config entry

Our accounts in our lab are all mounted over NFS and are accessible over all the systems in a subnet. So, effectively we can ssh into any of the machines in the subnet and continue our work. The ...
0
votes
1answer
39 views

ssh bastion host proxy command

This is a weird situation where the same command works when inputted directly in shell but not when it's a ProxyCommand in ssh config file. So this works: $ ssh -A -R 40022:git.some.pt:22 -t -t ...
0
votes
0answers
25 views

SSH: public key authentication to git repo works only on local sessions

I can access my repository on bitbucket from my machine without any issues if I am in front of it, but when I am logged in through SSH to the same machine, it doesnt. Diff of SSH output(local session ...
0
votes
2answers
59 views

executing command as su

I am executing this command as su. I have made the connection with SSH (using sshNet), and then when I try to set the command su -, I get no response. I have the password and the command I would like ...
1
vote
1answer
26 views

How to display a Image on a remote linux machine through ssh

I have two computers, one running windows(WIN7) and the other running linux(SUSe). I'm wondering if there is a way to ssh(Putty) into the linux machine and run a command to have a image display on the ...
1
vote
0answers
18 views

Run ssh-agent 24/7 using keychain?

I have a Node.js script that requires ssh-agent to be running 24/7 on my Ubuntu server. I installed keychain and put eval 'keychain --eval id_rsa into my ~/.bash_profile, but that only runs when I ssh ...
3
votes
3answers
67 views

How to run a script on a remote host when I lose connection to it?

I'm working with the BeagleBone Black, which runs Debian Linux, and sometimes I will lose wireless connection to it while I am testing my programs. This wouldn't necessarily be an issue on its own, ...
1
vote
1answer
37 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 ...
1
vote
1answer
40 views

Problem in using ssh from home to university

I want to control my lab pc from home using ssh and vnc. But because of firewall of my university, I can't contact my pc from outside. I wonder if there is a way to avoid the firewall and contact my ...
2
votes
2answers
33 views

Code for submitting job on cluster

I don't know whether this is the right place for posting this question, if not kindly let me know where I can ask. My doubt: I use the following code to submit a job on a cluster, but I don't know ...
2
votes
2answers
11 views

ssh and VNC connections are directed back to the original machine by dynamic DNS server

First question I've asked here so please forgive me if I accidentally break a rule. I recently set up an ssh server on my home machine, and am using ddclient to keep the dynamic DNS service at ...
0
votes
1answer
16 views

Fedora, where to put my ssh keys to login? [duplicate]

I just recently started a VPS using Fedora. Upon creation of the VPS I was asked if I wanted to use SSH keys (which I did). Now, to connect as root to the VPS, I do not need to enter a password. Now ...
4
votes
1answer
87 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 ...
0
votes
2answers
10 views

VNC/SSH: How to execute a command after logging in?

I'm looking for a way to create a VNC console user that executes the command screen or bash immediately after logging in so they get their own restricted shell for executing commands etc. Screen/bash ...
0
votes
2answers
39 views

Connection Timeout for ssh connection depending to the ip location?

I have a machine where I can connect it using ssh from different networks. But when I have moved to other country I have not be able to connect it. What may be the cause? I am able to ping the server ...
1
vote
1answer
68 views

Dubious entry in logwatch

Today I found the following in the daily logwatch of my debian server: --------------------- Connections (secure-log) Begin ------------------------ **Unmatched Entries** sg: user 'root' (login ...
2
votes
5answers
448 views

Is it more convenient to login to SSH using a password because SSH Keys need to be stored on each computer [closed]

I do not mean this to be an opinionated question, I am just trying to see if I am missing something here: It seems like using a username and password to use the SSH because the username and password ...
0
votes
0answers
13 views

Why does my PPTP connection work if I DMZ the server behind the router, but it does work if I use port forwarding?

Why does my PPTP connection work if I DMZ the server behind the router, but it does not work if I use port forwarding for the wide area network? Is there another port I need to open/port forward ...
0
votes
1answer
35 views

What happens to screen session over ssh when connection is lost? [closed]

I ssh to a remote computer, and create a screen session there. Then I lose the internet connection. When I ssh again to the computer, I want to see if the created screen session is still there, so I ...
0
votes
2answers
48 views

How is pipe involved in ssh?

My internet connection was lost When I ssh to a remote machine over the internet. It says $ Write failed: Broken pipe How is pipe involved in ssh? Does ssh implement communication between the two ...
1
vote
0answers
75 views

ssh does not get host key

I have a PivosXios-DS-M3 XBMC-Box, wich run xbmc12 until yesterday. All my desktops run Archlinux. Yesterday, I did a fresh install of tofu-linux to the Pivos-box (Kodi 14.1). Thus, on my arch ...