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

learn more… | top users | synonyms

3
votes
1answer
48 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
47 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
43 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
50 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
200 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
64 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
43 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
24 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. ...
0
votes
1answer
47 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
29 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
47 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
47 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
48 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
23 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
64 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
28 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
58 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
83 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
34 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
68 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
73 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
446 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
44 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
33 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
54 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
62 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
50 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
56 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
39 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
31 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 ...
3
votes
3answers
92 views

Transfering files via ssh but without scp or sftp

I need to transfer files via ssh, but unfortunately scp and sftp are not viable, as the host I am connecting is just a "door" node that is redirecting me to a different machine available only on a ...
1
vote
1answer
22 views

Prevent script from generating stdout if called from given program

I want my gnome-terminal to show my current user and host in its titlebar, and that of the remote when I am using ssh. To do that, I created a script ~/bin/ssh, with ~/bin in my PATH before /usr/bin: ...
1
vote
4answers
52 views

Why does read with pipeline fail in an ssh session?

Why does this show blank lines instead of folders found by find? ssh -o stricthostkeychecking=no -o userknownhostsfile=/dev/null \ -o batchmode=yes -o passwordauthentication=no user@myserver.xx \ ...
0
votes
1answer
43 views

ssh to remote machine using shell script [duplicate]

I want to ssh to remote machine within shell script but remote machine require password. How should i provide password in my script? I tried below but its not working. Please suggest #!/bin/bash SSH ...
1
vote
1answer
27 views

Block regular users from changing their passwords: only root should be able to [closed]

For security reasons, I want to make it so that only root can change user's passwords This can be achieved if I set /usr/bin/passwd to 700. Now, if password aging is enabled or first login is enabled, ...
3
votes
1answer
64 views

Tunneling multiple ports through a single port [duplicate]

I'd like to forward several ports from my local machine to a remote machine through SSH tunneling. However, I want this to happen across a single port. Is there a protocol or tool that can multiplex ...
1
vote
1answer
94 views

How can I enable trusted X11 forwarding on Putty (with Xming) or otherwise get rid of one second delay when starting X11 aplication?

I've noticed one second delay before Midnight Commander or mcedit starts in Putty. It took me a while before I realized it is caused by X11 forwarding enabled. mc -X start immediately. Unfortunately ...
-2
votes
1answer
21 views

backup from server to computer (SSH)

First of all I am newbie at SSH. Could you tell me, how can I backup files from remote server to computer storage disk? I use Windows and program PuTTy to connect to server through ssh. Can you write ...
1
vote
2answers
83 views

Cannot ssh without password [duplicate]

I have been trying to set up remote file copy without password between 2 Linux machines. I have appended my .ssh/id_rsa.pub from local to remote .ssh/authorized_keys. I have also set up correct file ...
0
votes
1answer
52 views

I can SFTP but not SSH

This question is similiar, but I'm experiencing the reverse scenario. SFTP works but I'm not yet connected using SSH. I'm using a config file and I'm able to sftp to remote server. Local machine is ...
32
votes
6answers
3k views

Linux equivalent to PowerShell's “one-to-many” remoting

Coming from Windows administration, I want to dig deeper in Linux (Debian). One of my burning questions I could not answer searching the web (didn't find it) is: how can I achieve the so called ...
9
votes
3answers
483 views

Why doesn't sshd use a pseudo terminal when the ssh client's argument is followed by an interactive program?

The normal way to connect to an SSH server is ssh username@ip_address. But a user may only want to run a program on the remote machine. So the program name follows after the normal argument which is ...
0
votes
1answer
52 views

Why am I still being asked for an ssh password when I'm using private key authentication?

I have Linux mint on my pc. I have a public/private key pair to ssh into my router without having to type the password. It works on Windows using putty, but Mint isn't when I run it from terminal. ...
1
vote
0answers
34 views

run gnu parallel ssh with ssh argument specifying shell [closed]

I want to run gnu parallel in a specific remote shell and profile, like this: $ ssh -t me@server.com "bash --rcfile .bashrc" I looked around and didn't find how to specify this in gnu parallel. I ...
0
votes
1answer
73 views

How to have Terminator display remote hostname in title bar? [duplicate]

When I am SSH'ed into any one of my Linux devices, the title bar on Terminator displays user@hostname, where hostname is the computer I am SSHing from, rather than the computer I am SSH'ed into (i.e. ...
1
vote
0answers
41 views

Vagrant ssh ask for password

I have been following this doc on Vagrant. I installed VirtualBox and Vagrant, then created a folder and ran vagrant init and vagrant up. When I typed vagrant ssh I got this message: The private key ...
1
vote
1answer
53 views

openssh: Have ssh add keys to agent as needed

When I ssh into a server and my key isn't loaded in the agent, I have to abort, then run ssh-add to get my key into the agent. I'd like the ssh command to add the key automatically if it isn't ...