SSH, otherwise known as "Secure Shell", is a method for securely connecting to a remote computer.

learn more… | top users | synonyms (1)

1
vote
1answer
50 views

Port forwarding/bypass firewall

I have two servers located at two different places: Ubuntu Server (MySQL) Ubuntu Server (Tomcat) The problem here is that the Tomcat server cant send data to the mySQL server over port 7878 because ...
0
votes
0answers
23 views

Putty SSH, refused connection by guest mininet machine

I followed the main VM installation notes on the Mininet website, and the VM works totally fine. But When I tried to SSH into the VM, at first it timedout the connection. Then after searching on the ...
2
votes
1answer
197 views

How can I repair gnome-keyring to unlock my SSH keys automatically after login?

It looks like some recent package updates broke some functionality of gnome-keyring. When using SSH from the terminal it asks me for the password of my SSH private key. Previously the key was unlocked ...
0
votes
0answers
33 views

SSH issue commands stucking

when I do ssh to my server and logged in successfully through terminal, the commands are stuking and taking longer to infinite time. e.g. ls,nano etc. I'm using ubuntu14.04 Terminal.
1
vote
2answers
61 views

Remote Desktop Linux to Linux

I'm a new user and recently I installed Debian Wheezy in PCs. I'm in charge of a computer center in a public school, and I need a software which control another ones. The trouble is I have been ...
3
votes
2answers
62 views

Open folder GUI in remote machine

I have ssh connection with a remote machine (ssh username@server). But now I want to open a certain folder path/to/folder in a GUI environment. The following I've tried while being in username@server:/...
2
votes
1answer
37 views

ssh-keygen -lf doesn't work in 16.04 LTS

When I run the command ssh-keygen -lf /etc/ssh/ssh_host_rsa_key it returns: 2048 SHA256 asdfgErgsf34GQERgfdGadsfsafgergfgadgfagjfaifgj root@Fre2 (RSA) Instead of a value such as: RSA key ...
3
votes
1answer
32 views

Escape username spaces in SCP

I've been playing around with SCP for a while, and I've been able to transfer files from one place to another. It all worked nicely until I needed to copy a file from Ubuntu to a Windows user who had ...
1
vote
1answer
55 views

Iptables rules slow down loggining in via SSH

I am trying to build some basic iptables rules for my VDS: iptables -A INPUT -p tcp --dport ssh -j ACCEPT iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables -A INPUT -p tcp --dport 443 -j ACCEPT ...
0
votes
0answers
27 views

Adding SSH to new user: Jailed (chrooted) SFTP user can authenticate, but is immediately exited [duplicate]

I'm having trouble creating a new user with some key permissions. I want this new user to do the following with "everything else" locked down: SSH tunnel to port 5432 (postgres) SFTP jailed to the ...
1
vote
1answer
24 views

How to setup transparent ssh when there are multiple servers

My desktop is Ubuntu. There is a host class with name my_host_machine, which includes several servers like: my_host_machine_1, my_host_machine001,my_host_machine__123, etc. It's uncertain which server ...
1
vote
0answers
45 views

ssh / scp / sftp slow. Transfers seems to be capped at ~64kb/s

Machine details: mediacenter@mediacenter-Aspire-R1600:~$ uname -a Linux mediacenter-Aspire-R1600 3.19.0-51-generic #58-Ubuntu SMP Fri Feb 26 21:22:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux ...
0
votes
1answer
27 views

Question about bash script

I am using Ubuntu 16.04. I have written a basic bash file which automatically logs me into my SSH server. Is there a way to add a message which says "Connection failed" if SSH can't reach the server? ...
1
vote
0answers
16 views

Printing over ssh: “cat file | lpr” or “lpr file”

I am looking at how to print a file over ssh. Two websites (The Linux Documentation Project and Computer Hope) suggest the command "lpr" but both seem to suggest two different methods, with no obvious ...
1
vote
2answers
83 views

Run Shell Script inside tmux

Why after running tmux on a remote server via ssh, program works; but after detaching sessions, it returns 404? This is a Go(golang) program, a http server listening on a port, behind a nginx reverse ...
2
votes
2answers
138 views

sshpass broken since ubuntu 16.04

Since I upgraded to 16.04, the following command fails: sshpass -p password ssh user@host with the error: Could not create directory '/home/mylocaluser/.ssh'. (~/.ssh folder already exists). ...
0
votes
1answer
82 views

OpenSSH index out of bounds when trying to connect

I am trying to connect to a SSH server that is out of my control with the following command: ssh -v user@12.34.56.78 -p 12345 Previously, this command works on Ubuntu 14.04 with OpenSSH version 6.6....
1
vote
1answer
454 views

Using SFTP with SSH ForceCommand directive

I have set up an SSH server (call it group2.fqdn) with this ForceCommand directive: Match Group group1 ForceCommand ssh -t group1.fqdn Match Group="*,!local,!group2,!root" ForceCommand ...
19
votes
2answers
14k views

How to use multiple ssh keys with different accounts and hosts

i have multiple ssh keys and i have also have account on bitbucket and github. how when ever i use pull it gives me error :/var/www/proj$ git pull origin master conq: repository access denied. fatal:...
1
vote
1answer
93 views

Command after apt-get install is not executing in script

I wrote a question on Server Fault, but I guess it's more applicable for this community. I'm writing a script which is meant to initially set up my Droplet. In the script, I'm opening SSH connection ...
0
votes
0answers
29 views

Access to host X11 from multiple containers (lxc) sharing the same GPU is limited to the last activated container

I have a server and 2 lxc containers sharing the GPU (nvidia gtx980 364.19) Vt7, Vt8 and Vt9 When trying to access the host X11 from any of the containers. It only works from the container that was ...
5
votes
2answers
2k views

Permissions denied to owner, although it is set to 666 in .ssh directory

I recently messed around with the .ssh directory. Made some permission changes, I think and now it won't let me access it anymore. I can access it as the root user (sudo -i) but not as somesh I get ...
0
votes
1answer
108 views

ssh localhost issue on Ubuntu 16.04

I am trying to ssh to localhost, but it's asking for a password every time. What I tried: ssh localhost ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub >> ~/.ssh/...
1
vote
0answers
16 views

Jails user in your home

I have VPS with many users, but i need jails user in your home. Example: User1 access /home/user1/public_html User2 access /home/user2/public_html Both can use SSH, but may not have access to /...
3
votes
0answers
27 views

I need a correct help for MariaDB SSL support

I have to make my MariaDB authentication a bit safer than default. I tried to set up SSL support for this, but found only an old howto here: How to enable MySQL SSL on Ubuntu I followed it, however ...
-1
votes
1answer
17 views

SECURE LAN for File Transfer, 3 machines, upload/download from any machine to any machine

I would like to be able to access 3 different Ubuntu based machines securely, both upload and download, all on the same LAN. I need either written resources or step-by step instructions to setup all ...
1
vote
1answer
377 views

sshplus config file

I just recently lost my old hdd and put a new one in my machine and have been getting back to where I was before this whole mess and now I can't seem to find clear instructions on how to make a config ...
1
vote
1answer
89 views

How can I resolve x11 problem with Putty if I have this error? PuTTY X11 proxy: Unsupported authorisation protocol

On my client PC I'm running Windows 10 and I have installed XMing and Xming Fonts. I am running Putty and I have configured it to enable X11 Forwarding. I have tried leaving the X display location ...
1
vote
0answers
73 views

ssh_exchange_identification: read: Connection reset by peer

I really do not know much about ssh. I only know how to type some commands to get into my machine in my office when I work from home. Today I got some updates on my Ubuntu 14.04 machine, a new kernel ...
3
votes
1answer
57 views

How to update Remote SSH Protocol for PCI compliance

I'm trying to update my linux server to the latest SSH (7.2) to comply with PCI. I successfully updated it locally but I can't work out how to update it remotely and the PCI check still fails. When ...
6
votes
3answers
3k views

Execute a command on local computer from a connected remote SSH host?

Say I have connected to a remote computer via SSH. From a program on this remote computer, I need to execute a command on my local computer (the connection initiator). Which raises the question: is ...
1
vote
1answer
4k views

Connection mystery with ssh

I've run into a problem with ssh that has me completely stumped (and our department IT guy as well): Up until a few days ago I had no problems accessing my files on our departmental server (university ...
4
votes
1answer
105 views

Use sshfs with ssh-agent and/or kwallet

I am using sshfs with a password protected key pair to mount a remote folder using a shell script. I am also using ssh in that script. Every time I start the shell script I get a password request on ...
1
vote
0answers
32 views

Logging into WordPress using SSH

I've got a WordPress test server installed on the local system on Ubuntu Server 14.04. I want to use SSH rather than FTP to access the wordpress site, install plugins and so on. I've followed this ...
0
votes
0answers
10 views

Restricting users to their web directory [duplicate]

I need to setup SSH/SFTP user access for two separate accounts and have them access a specific web directory and not have access to the rest of the server. What I tried to no avail: I modified the /...
0
votes
0answers
18 views

SSH bash 24: command not found

I am trying to setup cross compiling with Ubuntu vm and beaglebone black debian, after writing C++ script and sftp the file to the BBB I tried to SSH to the BBB. The error I get when i put the correct ...
1
vote
2answers
219 views

SSH from my Mac into Ubuntu: X forwarding not working correctly?

Running a Mac Pro, OS X El Capitan 10.11.4 With ATI Radeon Graphics card, and XQuartz v 2.7.9 I am able to run qdec and freeview perfectly fine on my machine. The problem comes when I attempt to SSH ...
6
votes
1answer
82 views

SSH - Reallocate Disk Space

I understand that this is a question that is asked quite often, but unfortunately most answers involve using a LiveCD which in this case isn't possible. I'm currently using a dedicated server running ...
0
votes
1answer
49 views

Setting DISPLAY=:0 has no effect to notify-send via ssh

I have ssh access to my flatmate's computer (Ubuntu 14.04). I want to send her a message via ssh, thus I use this command export DISPLAY=:0 && notify-send "sample message" The command exits ...
0
votes
1answer
63 views

How to only allow access to web server through SSH?

My goal is to have a web server on my PC (running Ubuntu 16.04) that only I can access through SSH so that even people on the same network couldn't access the lighttpd server. SSH has been set up ...
1
vote
2answers
34 views

CronJob to copy a directory on a remote server

I Need to create a Cronb that will run daily on my server and will ftp into a remote server with a username and password. It will copy a directory on that server and copy it onto a directory on my ...
0
votes
1answer
121 views

Ubuntu 16.04 ssh lag issues

really frustrating bug right now, that I cannot find the cause of. So I have a server on digitalocean that I serve my site on. but since switching from windows to Ubuntu 16.04 there has been random ...
129
votes
7answers
209k views

How do I change my username?

Some time ago when I installed Ubuntu I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name ...
82
votes
7answers
341k views

Adding SSH Keys to authorized_keys

I have an Ubuntu server on Amazon EC2, that I use for development, and today I stupidly cleared everything out of my ~/.ssh/authorized_keys file. Luckily I have an SSH open, so I am still connected, ...
10
votes
3answers
67k views

How to copy file to another machine through terminal?

I have Ubuntu 10.04 running through VMPlayer. And I have another machine (Asus RT-N16 router). I am able to connect to the router with telnet and see its file system. How can I copy the file from the ...
1
vote
2answers
3k views

ssh connection closes after successful login

I am trying to run ssh on my computer so I can control it with my android phone. When I scan my local network with overlook fing at my phone I get that my computer is running ssh at port 22. So I try ...
0
votes
1answer
105 views

Passwordless and keyless SSH guest access

I am trying to set up a guest user that allows ssh access without a password AND without a keyfile. All my searches turns up people trying to set up password-less entry with a keyfile. This is not ...
-1
votes
1answer
30 views

SSH Login With Security Question?

I Don't Know If This Is Possible. But Can i install anything or is possible to create any script which will be executet after i will login on my Ubuntu Server As Root?! An script with Ex, 3 security ...
5
votes
3answers
7k views

Disable interactive SSH at user-level

I connect to a server I don't control via SSH. I use public key access and don't need to be able to connect with a keyboard-interactive password. I would like to disable keyboard-interactive access ...
159
votes
2answers
163k views

How do I retrieve the public key from a SSH private key?

A SSH private key as generated by ssh-keygen contains a public key part. How do I retrieve this public key from the private key? I've lost my public key and need to put the contents of this public key ...