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

learn more… | top users | synonyms

1
vote
1answer
25 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
12 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
20 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
144 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 ...
0
votes
1answer
40 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
31 views

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

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
36 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
33 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
39 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 ...
1
vote
0answers
11 views

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
22 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
22 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
43 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
21 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
26 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
26 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
29 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
10 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?
0
votes
0answers
54 views

SSH randomly stops working, and any other request from network related services

I'm pulling my hair out right now, since I don't know where else to look, what else to do, to find out why the SSH stops working suddenly. The ssh-server is on the same network as the client, but it's ...
1
vote
2answers
70 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
517 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
25 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
11 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
83 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
26 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
18 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
45 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
43 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
16 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
31 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
46 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
24 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
58 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
33 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 ...
1
vote
1answer
36 views

How to connect to another machine over SSH?

Is it possible, by simply issuing: ssh user@ip_number:port and providing a password? Or does something have to be installed, or not blocked? I am referring to two machines over the Internet.
2
votes
1answer
92 views

installing fail2ban on CentOS 7

I am using @GarethTheRed 's answer to this question to install fail2ban on a remote CentOS 7 server. I am able to complete all the steps up until tail -f /var/log/fail2ban.log, at which point I get ...
2
votes
3answers
41 views

SSH command with file redirect not working

I want the following command's result to redirect into a file on the remote server, as I want only unique lines in my authorized_keys file: ssh root@10.100.10.26 awk '!seen[$0]++' ...
0
votes
2answers
58 views

Download n Upload files via telnet session

I have an attendance Device with Linux OS installed. I am able to connect that device via telnet session. There are some files in the device which I need to download and upload with new files. How can ...
-1
votes
0answers
14 views

X11 forwarding through a server where X11Forwarding is disabled

How can I push an X11 forwarding session over an SSH tunnel when the server doesn’t allow that? I guess I should use some port forwarding or edit ProxyCommand in /etc/ssh/ssh_config, but none of them ...
0
votes
0answers
29 views

SSH client connection not working to remote servers not working

I am unable to connect to other machines from one of my servers. Here is the verbose output (IP, domain, port are masked. OpenSSH version info removed): $ ssh -vvv user@example.com -p yyyy debug1: ...
1
vote
1answer
36 views

How to refresh chromium (F5) from shell script in debian (alternative of xdotool)

I need some help finding an alternative to xdotool. I am using a Raspberry Pi to refresh a webpage regularly using chromium. For this, I use a shell script: xdotool search --name chromium key ...
1
vote
1answer
37 views

List connected via SSH users [duplicate]

I checked this answer and this option - it is good, but it requires sudo rights. I need that this command may be performed by any user, for this reason I am using next command ps -ef | grep sshd: | ...
1
vote
0answers
24 views

Dynamic ~/.ssh/config

I'd like make my ~/.ssh/config file dynamically generated by a shell script (or anything else that prints to STDOUT). Is there a UNIX trick to make reading a file result in executing a command & ...
0
votes
1answer
26 views

SSH connection gets lost, but not when logged in to MySQL

When I open an SSH connection to our database server and leave it open for a longer time, the connection gets lost at some point. I don't know why or how, but this happens a lot. I still see the ...