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

learn more… | top users | synonyms

0
votes
0answers
2 views

Can't change gnome-terminal tab's title from within ssh session on remote debian 8 machine

When I connect to a debian 8 server I can't change gnome-terminal tab's title, see for yourself: $ ssh server1 $ echo -en '\e]0;test\a' # title changes $ echo $TERM xterm-256color $ cat /etc/issue ...
0
votes
1answer
25 views

Ugly bash function to send commands and “say” anything in screen over ssh. Is there a better way?

I’m working on a function this works but it is ugly. One thing that could be changed is being able to know the name of the screen. Using screen -dms minecraft java ….jar now starts a screen session ...
0
votes
1answer
14 views

Re-entering a screen in different places [on hold]

I am ssh-ed into a server from multiple places, and I want to know how I could get into a screen session from multiple places. I am running something in a screen session, and I want to know how I ...
6
votes
1answer
95 views

Cannot run cryptsetup throught SSH?

I'm trying to open a LUKS drive through SSH directly. ssh root@XX "cryptsetup luksOpen /dev/sdb3 secure But, no password prompt and it stuck. debug1: Sending command: cryptsetup luksOpen /dev/sdb3 ...
0
votes
0answers
8 views

Establish reverse ssh tunnel at OS startup / network connection up

I'm trying to setup a reverse SSH tunnel using a middle-man, due to firewall restrictions. I took the following steps: from ssh server do reverse tunnel: ssh -R 8080:localhost:22 ...
-3
votes
0answers
44 views

Cannot connect to server through public ip [duplicate]

Whenever I try to connect to my computer through ssh I get a message: connection refused I'm using a Belkin router. Port 22 is forwarded to my private ip address. If I ssh to my private ip ...
1
vote
1answer
15 views

Remote ssh command not sending echo variable from a ksh script on AIX

I'm need to get the value of a variable from a remote host in a script using SSH and have to source an environment file first that does a shift at the end of its run. The command works locally and I ...
0
votes
0answers
18 views

Is there a large performance difference between find and find2perl

Is there a performance difference between find and find2perl? I work for a hosting company and I was told that our admins prefer us to use find2perl over find. Supposedly this is because find is ...
1
vote
1answer
23 views

How does 'ssh-copy-id' work under the hood?

What does the program ssh-copy-id actually do under the hood? Can the steps be explained as if to a child with a good understanding of computer science? Does it use protocols already existing in the ...
6
votes
5answers
443 views

Use two different ip addresses per host in SSH

I have a server, named gamma, constantly up and running at work. Sometimes I connect to it from at home, in which case I use the public IP address 55.22.33.99. Sometimes, I connect to it when I'm at ...
2
votes
0answers
14 views

X forwarding from a mac to Linux fails

I have been having problems recently while trying to ssh into linux servers (Ubuntu 14.04) from my mac (OSX Yosemite 10.10). This used to work fine until my latest update, where I systematically get a ...
2
votes
1answer
51 views

What will happen if I export my $HOME variable upon login?

This is a follow up from this question: http://askubuntu.com/questions/563828/how-to-change-my-home-directory?noredirect=1#comment775654_563828 The summary is: running ubuntu 14.04 ssh'ing into it ...
-1
votes
0answers
17 views

X11 based remote assistance?

what methods are there to offer remote assistance through X11 and ssh. The desktop that needs assisted is Lubuntu, and I am on Arch Linux. It should allow me to see and interact with applications the ...
0
votes
1answer
32 views

How can I use SSH to tunnel Minecraft clients to my MineOS server?

I have a MineOS Turnkey server running on my university's network and its locked behind their firewall. I have been able to connect to their Linux servers using SSH and then SSH to my server from ...
4
votes
2answers
156 views

How to decrypt hostnames of a crypted .ssh/known_hosts with a list of the hostnames?

I try to find a script to decrypt (unhash) the ssh hostnames in the known_hosts file by passing a list of the hostnamses. So, to do exactly the reverse of: ssh-keygen -H -f known_hosts Or also, to ...
1
vote
1answer
42 views

Preventing user from accessing parent folders [duplicate]

I have a user who I only want to be able to access /var/www/ucp/ (his home directory). I have executed the following command on the / directory, the /var/ directory and the /var/www/ directory: chmod ...
0
votes
0answers
33 views

.sh script (expect) to scp a folder via proxy [closed]

I want to make a .sh script to upload an entire folder to a server via ssh (with a proxy in between). I was thinking on using something like expect. But I couldn't even copy the files yet. The info ...
1
vote
2answers
37 views

Safe way of letting users upload their public keys

I need to let untrusted users, strangers, upload their id_rsa.pub to my server and onto a given user's authorized_keys (user git in my case). What is the safest way of achieving that, without having ...
1
vote
1answer
39 views

Run a GUI application in background and reconnect later [duplicate]

Is there a way to run a Gui application (X11) in background so that if I disconnect, I can resume the running app again? I am using SmarTTY on windows to connect to remote CentOS. When I run a Gui ...
0
votes
1answer
60 views

CentOS 7 add new user with root privileges

I am reading this tutorial, and trying to create a new user with root privileges and then block root access via ssh in a CentOS 7 server. The problem is that the new user is blocked from doing root ...
2
votes
0answers
34 views
+50

Connecting SSH and Git to gpg-agent

I'm running a YubiKey NEO with the OpenPGP applet to store my GPG keys on the smart card. I've stopped all other SSH and GPG agents manually by removing their startup entries (On elementary OS Luna, ...
2
votes
1answer
27 views

upload and dowload the files from server without giving password

I want to download the file from sever by using cron job, so I need to use scp command without giving password by keyword. How do I do so?
1
vote
0answers
24 views

SSHD_CONFIG keeps corrupting on reverse SSH setup

I have a reverse SSH setup to traverse an impenetrable CGN NAT. It works well, but the SSHD daemon on the client behind the NAT keeps dieing for unknown reasons (fails to start-up). The client ...
0
votes
1answer
45 views

Create A Script That Responds To A Password Prompt

I'm writing a shell script that will respond to a prompt. For example, when I execute a file, the executed file will then prompt the user with this: Please enter the password: Then I want the script ...
2
votes
1answer
26 views

encfs automount and authorized_keys

Here's my problem: I have encfs configured in such a way that on login the subfolder ./private is mounted. However, when I use the workstation remotely via ssh, I don't give my password on login, ...
0
votes
2answers
27 views

How to instablock IP based on root SSH login

I have had this setup before by a friend of mine but it got lost in a reinstall. Basically what happened was, whenever someone would directly SSH to my server as root their IP would get blocked, you ...
0
votes
1answer
13 views

SASL authentication fails when called from crontab

When I run mbsync from the command line it works fine. But if mbsync is run from the crontab, mbsync fails with this error "Error: SASL(-1): generic failure:". My guess is that mbsync's SASL ...
1
vote
1answer
33 views

Keep service running after ssh session ends [duplicate]

i have an ubuntu-server box to which i connect via ssh. now when i start a service (in this case teamcity) i would like to keep it running after the ssh session ends. right now the service stops as ...
-3
votes
1answer
31 views

ssh tunel how to?

ok I have a following situation. machine1 , machine2 and laptop. I need ssh and scp protocol enabled such that I can access to machine1 and do some things there. also i cannot access to machine2 ...
0
votes
0answers
11 views

Linux Mint will not allow traffic from one specific PC on LAN

I was editing /etc/network/interfaces, and then decided to change my settings over VNC instead. This halted my SSH session and also my VNC. I'm not sure if this locked me out or not, but I set cron up ...
0
votes
0answers
28 views

Configure connection from Virtual Machine to a specified server

I know this might sound rather ambiguous, but I don't know how else to put it. I'm working on a Virtual Machine and I use SSH to connect to another virtual machine . Is there anyway that I can ...
0
votes
1answer
45 views

How can I modify client SSH settings?

I am logged in a system as student. How can I modify client SSH settings so that when I write the following command ssh 123.4.5.67 , SSH client authentificates me as another user?
1
vote
2answers
78 views

Have SSH on port 80 or 443 while webserver (nginx) is running on these ports

I have a remote Linux (Debian) machine which I'd like to access from a very restricted network. In fact the only two open ports are port 80 (for HTTP) and 443 (HTTPS). On this machine I have nginx ...
0
votes
2answers
27 views

Is it possible to configure ssh to login with a key if it exists or use a password if it doesn't?

I'm trying to configure sshd for our internal network to accept public key authentication if a user has set up their key or ask for password if the user has not, but not both. So a user should be ...
9
votes
2answers
529 views

How do I force a user to change a password at the first time login using ssh?

I'm trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did ...
1
vote
1answer
26 views

Jail in chroot in debian 7.5 - Privileges Separation problem

I'm trying to create a jail for a user in my server. Let's call the user "juser". What do I want to achieve? I want an ssh user to be jailed in his home folder and not have any access (whatsoever) on ...
0
votes
0answers
12 views

Remote shell weird behaviour using arrow keys and editing commands

I am logged in remotely over a rather slow connection and the terminal is doing weird things when trying to edit commands. For example, I start with find . -type f | xargs grep "_RWSTD_STATIC_CAST" ...
0
votes
2answers
98 views

cp: cannot stat : No such file or directory

I am getting an error when I try to copy a file from my local computer to a remote server with ssh. I get the same error whether I use cp or scp. Here is my input at the resulting error: ...
4
votes
2answers
28 views

SSH password requested when in Tmux

When I connect to my remote machine I do authenticate using a rsa key (I think is rsa, don't remember). If I do ssh from a regular shell I get logged on the machine without a password. However if I ...
1
vote
1answer
20 views

Unable to get last connection info for SSH users (locked, no shell, public key) is there an alternative?

I have several remote systems connecting to my server via SSH to establish tunnels. They authenticate using a public key, their user is locked and their shell is set to /usr/sbin/nologin It all ...
0
votes
0answers
56 views

ssh: connect to host 104.131.76.121 port 10222: Connection refused

I have been trying to solve this problem for quite some time. The error is in the title. The server is a digitalocean ubuntu 14.04. It was working before hand. I changed the ServerAliveInterval on ...
0
votes
2answers
46 views

Using something like scp but when I've logged in already [duplicate]

I want to copy a file via ssh when I've logged in. What scp does is that it copies the files by login, password, path. What I want is to be able to do the same thing when I'm "inside", ideally without ...
1
vote
0answers
17 views

SFTP/SCP only and chroot [duplicate]

We have a SFTP Server and a bunch of users. The users share files over the SFTP Server with us (not the best solution, I know). Every user is chrooted into a different directory to prevent them from ...
3
votes
0answers
54 views

What default shell to use for an SSH user limited to a single command

When limiting a user to a single command via ssh, what default shell should be used for the user? This is a follow up to how can shellshock be exploited over SSH? I have a machine that is running an ...
1
vote
0answers
33 views

Streaming Qt over ssh

I am trying to stream a program over ssh and it doesn't work. It is written in qml and I've already compiled it, but qmlscene doesn't work either (doesn't matter what file). The error I'm getting is ...
2
votes
1answer
50 views

How does ssh prompt for a password when all input and output is redirected?

I don’t actually need to run the command below, and I am aware of ssh keys if I did want to log in without typing a password. I would just like to know how ssh seems to circumvent my file redirection. ...
0
votes
1answer
28 views

SSH login attempts

The log on my server is full of entries like these: input_userauth_request: invalid user dennis [preauth] Received disconnect from xxx.xxx.xxx.xxx: 11: Bye Bye [preauth] Invalid user park from ...
0
votes
1answer
67 views

ssh connection closed, after prompting password

I'm using a debian based distro for Raspberry Pi (Raspbian). Sometimes I cannot ssh to my Pi. A reboot solve the issue, but I don't always have physical access to the Pi. here's what happens: ...
1
vote
2answers
36 views

Lightweight SSH-only distro (< 128 MiB RAM) [closed]

I am looking to set up an SSH entry point into my network via a lightweight Linux or BSD setup. The purpose of the distro will be to allow SSH access into the rest of the internal network—that's it. ...
0
votes
1answer
36 views

How to stop background processes started with screen

This question might have been asked before but I don't see it. I use screen ssh to remotely start processes that take multiple days. I ssh in, start multiple processes in the background, and detach ...