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

learn more… | top users | synonyms

1
vote
1answer
31 views

Check presence of a hostname under custom port in known_hosts

I need to add a check if the hostname is already present in the known_hosts. Normally I would do something like that: ssh-keygen -H -F hostname However, that does not seem to work for me in this ...
0
votes
0answers
24 views

SSH Connection to a folder only [duplicate]

I want to provide SSH connection to my developers to connect to the server. But I want the connection to be limited a folder and its subfolders and files only. How can I do this?
0
votes
1answer
22 views

Proper way of creating new accounts in passwordless systems [closed]

What is the proper way of delivering credentials in passwordless ssh systems (linux)? By passwordless I mean login using only SSH keys. Should I generate pair of ssh keys and deliver it to new user, ...
1
vote
1answer
60 views

Specifying SSH KexAlgorithms works at CLI but not via ssh_config [duplicate]

By default, my SSH client disallows the use of the diffie-hellman-group-exchange-sha256 key exchange algorithm. However, I need to access a server on 10.0.0.1 that requires the use of that algorithm. ...
-1
votes
1answer
38 views

ssh throws bad host name and no output

I have script that goes in each server and gets output. EXCECUTE_CMD="$(find /tmp/customize -name 'customize.*.log' -mtime -1 -type f -print | wc -l)" for server in $SERVERS do ssh -o ...
5
votes
2answers
113 views

options override for openssh client configuration

Since I want to protect my ssh connections, I set some global cipher suite options to restrict set of used algorithms. But recently I've encountered a server which doesn't support some of those ...
2
votes
0answers
52 views

zsh theme doesn't work on a remote server [closed]

Here is a screenshot from the author of a theme: And this is what I have: What am I doing wrong?
0
votes
1answer
32 views

Is there a command-line application that combines SSH and SFTP? [duplicate]

When I'm working on some remote host via SSH, I often need to upload or download files. With my current setup, I need to switch to another terminal and conjure up rsync or sftp, which can be a pain ...
1
vote
1answer
54 views

Start a python script in `screen` on boot?

I want to be able to start a python script when I boot, but I want to be able to see lines which have been printed during the program. I have been able to put the line "sudo python /path/to/file.py" ...
1
vote
1answer
61 views

How to show and operate a remote Linux desktop when SSH or any other remote service is unavailable? [closed]

The situation is as follows. On Monday, I need to showcase a program that needs the set-up development environment and hardware on my home system, at the university. The ISP are misbehaving and won't ...
0
votes
2answers
44 views

Extracting a certain folder from a tarball - how do I tell it where to put the file once extracted?

I've looked around at multiple sources for this question and I know how to extract the file, but neither source told me how to state where to put the folder once it has been extracted. I tried this: ...
-1
votes
1answer
65 views

Redhat Linux Server : Plone installation

Unable to install any package using apt-get installer it shows sudo: apt-get: command not found -How to install apt-get package over server ? -I am trying to install Plone over my server so by ...
0
votes
1answer
25 views

Excluding files whilst using tar to zip site contents not working [closed]

I'm trying to zip the contents of a site using tar and exclude a bunch of folders and error_log files but it doesn't seem to be working, when it's processing I still see many of the excluded files ...
1
vote
2answers
51 views

Trying to run rsync between two remote servers via reverse port forwarding with ssh key

I'm trying to run an rsync between two servers. I'm basing things off of this post: How to rsync files between two remotes? What I find missing is how to facilitate the rsync (via ssh) when a key ...
1
vote
1answer
96 views

SSH access asking for password in local network but public

I have a problem when ssh to another server. I created ssh-key and copied it to other server. -bash-4.2$ whoami postgres -bash-4.2$ ssh-keygen Generating public/private rsa key pair. Enter file in ...
0
votes
0answers
100 views

SFTP connection using public key (without password) not working

I need to provide sftp access to a client to my ftp server and this is working fine. For them to access our server without using password - we have followed the below steps on our server. Created ...
0
votes
0answers
26 views

Email user temporary code access code when using ssh

I am looking for a way to create my own two factor authentication for ssh. After the user enters the correct login info I would like the terminal to send an email to the user that contains a code ...
3
votes
1answer
53 views

What configuration exists in CentOS but not in Ubuntu, which shows user@hostname for remote terminal sessions?

We have a standard "basic server" install of CentOS 6.7 for our servers, and Ubuntu 14.04 for our desktops. From my Ubuntu desktop, when I ssh into a remote server (ie: ssh into a CentOS instance), ...
1
vote
2answers
57 views

X11 forwarding fails when switching users

X11 forwarding works when I am logged in my CentOS 6.6 cluster as myself (using ssh -AY user@ipaddress). When I try switching users, e.g. sudo su user2 and try to fire up xterm, I get the error : ...
1
vote
1answer
47 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
3answers
52 views

How to find an ssh session a process was started from

How can I find a process which was started from some ssh session. For instance, I gave same ssh cridentials (aka. userzxc/passwordzxc) for my several friends which IPs i already know. My goal is to ...
5
votes
1answer
210 views

Can I get SSH to use an askpass program even if it was run from a terminal?

man ssh says: SSH_ASKPASS If ssh needs a passphrase, it will read the passphrase from the current terminal if it was run from a terminal. If ssh does not have a terminal associated with ...
3
votes
3answers
86 views

persistent ssh sessions without screen or tmux

My work seems to have deliberately crippled screen and tmux such that they destroy all sessions on logout (they didn't answer when I opened a ticket about it). i.e., when I [detach and] log out, ...
1
vote
1answer
64 views

Mass deployment of package to multiple Linux servers across different continents

I'm new to here and want to raise an interesting question about mass remote configuration of Linux servers. Imagine you get a list of IP addresses for 100 servers with a fresh install of Ubuntu, ...
1
vote
0answers
28 views

I cannnot connect to guest os(protostar) through ssh from host-pc (linux mint)

I'm trying to connect a to guest machine (protostar) through ssh from my host PC (Linux Mint). I'm using VirtualBox. I tried: setting up hostonlyadapters. setting up NAT Networking. ...
1
vote
1answer
75 views

Why installing openssh-server would remove openssh-client?

I face the following situation on one machine with 64bit Mint 17.3 Cinnamon: $ sudo apt-get install openssh-server Reading package lists... Done Building dependency tree Reading state ...
1
vote
1answer
33 views

Initializing fully connected ssh network

I have five Linux machines with a service account on each under the same name. They all have a subnet connection to each other (192.168.1.{1,2,3,4,5}). I have a script that parses /etc/hosts and adds ...
0
votes
2answers
67 views

Sudo with password and append to file via SSH

What i'm trying to do is the following. SSH to remote host. Append the public_keys in the logged in users authorized_keys file to all the users .ssh/authorized_keys file. I've run into problem ...
0
votes
0answers
57 views

Unresponsive Java Application with ssh X forwarding

I have an X session forward via ssh. I run a Java jar application (Apache JMeter) on the remote server. It functioned really well with acceptable lag until today. Recently has become really ...
0
votes
1answer
57 views

Bash script to read and replace string(external ip) at end of ssh config

Im in need of a script to get external ioaddress and replace at the end of an ssh config file I have so far #!/bin/sh IP=$(wget http://ipecho.net/plain -qO-) For a variable I can echo but need a ...
2
votes
1answer
30 views

How do I install known_host keys for ssh manually?

I've got a secure transmission system where I'm pushing host keys to a database and I'm trying to install keys generated on a Ubuntu 15 machines and install them them on a SLES 11 machine and I'm ...
1
vote
3answers
79 views

rsync to remote server without password [duplicate]

I seem to be having a little issue with connecting to a remote server, to rsync my backups what i have done so far run ssh-keygen created public and private key run ssh-copy-id -i my.key.pub ...
0
votes
1answer
40 views

.zshenv not sourced on ssh login?

According to the docs .zshenv is sourced on all invocations of the shell, unless the -f option is set. It should contain commands to set the command search path, plus other important environment ...
0
votes
3answers
74 views

How to copy a folder from remote using remote user with sudo? [duplicate]

How to copy a folder from remote using remote user with sudo? None of these works on folders with permissions and fails with permission denied: scp -r userwithsudo@XX.XX.XX.XX:/source/ /destination/ ...
0
votes
1answer
94 views

Video drivers problem only when tunneling X through ssh

I am a reluctant sysadmin who inherited the responsibility for configuring a RHEL 6.7 server (operating inside a VMware virtual machine) to replace an old physical server. On this new server, certain ...
1
vote
1answer
37 views

SSH'ed into remote machine, but run certain graphical apps locally

I have a terminal window and am ssh'ed into a server, possibly running tmux. Both the remote server and my local computer have the same view of the filesystem I am working on. I would like to be able ...
0
votes
3answers
85 views

SFTP Automatic Login

I want to know how can I connect automatically using sftp with a password as an argument in the same command to get the automatic login an execute once. Example: I want to put it into a script, and ...
0
votes
2answers
75 views

SSH always connects to the same IP address [closed]

No matter what the host is, SSH keeps trying to connect to 162.13.177.241. Command ssh -v user@host Output debug1: Connecting to 162.13.177.241 [162.13.177.241] port 22. My /etc/hosts file is ...
11
votes
1answer
455 views

Remember password for ssh key for some time

I created ssh key. I use it to connect with git repositories. When creating the key, I noticed the prompt that said the password should be hard to guess. Therefore, I came up with 40+ characters-long ...
0
votes
1answer
24 views

Problem with characters in SSH with MingW32 and not super-user [duplicate]

I am connecting to my server with SSH from Windows 10 with MINGW32 (Git). When I connect and user the root user everything works correctly but when I login with another user and use special ...
0
votes
2answers
61 views

mussh no tty present and no askpass program specified

Using MUSSH on remote machine to execute a bash script $ mussh -a -i ~/.ssh/id_rsa -d -H mas-hostfile -c 'bash script.sh' -m2 sudo: unable to resolve host hostname aurelien@000.000.000: sudo: no tty ...
0
votes
0answers
17 views

Reject ssh -L connection unless a corresponding ssh -R exists

Is there any way to make an SSH server reject a connection that attempts to use port forwarding unless it is directed to an existing reverse tunnel? To clarify, my intent is to only allow forwarding ...
0
votes
2answers
38 views

Allowing a restricted user (rbash) and to run virsh

We have a virtual win7 machine that needs to be rebooted remotely from time to time. We created a restricted user account with the shell set to rbash so a user can ssh in and reboot the virtual ...
3
votes
1answer
70 views

How to NOT preserve permission when using scp

I am trying to copy data to one of my servers. Some of the files that are copied have permission 444 on the source machine. This is very annoying, since if the transfer gets interrupted while one of ...
1
vote
2answers
67 views

Why some commands don't load user environment when executed with ssh? (while other do)

On a target machine (OS X El Capitan) I have brew in /usr/local/bin. When I try to get brew's path I get no result: # ssh vagrant@127.0.0.1 -p 2222 which brew # Troubleshooting: brew is in ...
0
votes
1answer
58 views

ssh login doesn't parse .profile or .bashrc properly and is generally being weird

First of all it doesn't load my PS1. It just prompts me with a $ The arrow keys instead of doing what they're supposed to do, the just echo things like: $ ^[[A And that makes it very unusable. A ...
0
votes
0answers
28 views

How to rsync files from machine A to machine C via machine B? [duplicate]

I need to rsync files from machine A which is not accessible from my machine (machine C) and it can only be accessed from machine B. How do I rsync files via another machine? files (machine A) ...
0
votes
2answers
80 views

Setup SSH login using public key in GoFlex Home

I am trying to setup SSH public keys to login to my GoFlex Home 2TB. These are the steps I took Copy my public key to /home/user/.ssh/authorized_keys Modify /etc/ssh/sshd_config to allow public key ...
1
vote
1answer
42 views

Revert ssh from publickey to password

I operated a debian server for a while while just by permitting a publickey-based access. Unfortunately I lost the private key (reinstall without backup), and now I am not able to log into the system ...
1
vote
1answer
34 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 and I need help opening port 20 and 21 so I can ftp, but every time I try to it wont save and let me ...