Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices.

learn more… | top users | synonyms

0
votes
0answers
3 views

How restrict ssh pubkey using 'from=“pattern-list”' when connection goes through tunnel?

My home machine is behind NAT. I want get access to it using pubkey but want restrict that key to some IP. I make tunnel from home to server ssh -f -N -R 1144:localhost:22 user@server Server has ...
12
votes
1answer
3k views

Function key shortcuts in PuTTY/MinTTY and Tmux/Byobu

As a long-time lurker on Stack Exchange, I've found answers to most of my problems without needing to so much as make an account. But today I'm completely stumped with this issue, so I'm reaching out ...
1
vote
2answers
20 views

SSH retain history of machines

I tend to ssh into alot of machines. What is the simplest way to recall them ? For example, is there a command such as ssh --history Which might print something like tuesday april 18 12:00 ...
0
votes
2answers
23 views

link machines which are both behind NAT via ssh tunnel

I have two machines. both behind NAT. Also I have access SERVER from each machines. Is there way to do ssh tunnel from machine1 to machine2 via SERVER? Client machines are linux mint. SERVER is ...
0
votes
1answer
27 views

Copying an SSH ID to a server from a certain computer yields an error while the same command works fine from other computers

I get the following error message when trying to copy an SSH key to a remote server: ssh-copy-id -p*** ****@****.com Pseudo-terminal will not be allocated because stdin is not a terminal. ssh: ...
9
votes
5answers
800 views

Network-dependent ~/.ssh/config?

In the office, I can connect to internal machines without a proxy, but need a proxy for external connections. Outside of the office, I can connect to other external machines without a proxy, but need ...
0
votes
0answers
12 views

How to pass the command to the other server using ssh

#!/bin/bash ENV=stg NODE=node4 KEYFILE=************ USERNAME=ubuntu PORT=22 HOST=********** CASSANDRA_HOME=/ebs/var/lib/cassandra KEYSPACE=*** TABLE1=RegisterUser TABLE2=EmailSyncMetadata ...
2
votes
2answers
103 views

Strange behavior on SSH public key login

I'm really stuck here. I've been trying to ssh into my ec2 server from local with a public key but it is not working. -> I get permission Denied (public key). The set up is as follows: Local: ...
1
vote
0answers
8 views

Can I restrict VNC connections by SSH key or login ID?

I want to offer friends access to the X desktop on host "foo" for collaboration, but only at certain times; meanwhile, I want to access that desktop myself at any time. I have set up SSH port ...
2
votes
1answer
44 views

Ubuntu unlock ssh key at every usage

I have an SSH private key and I would like to be asked for the password every time if it is used. I don't know how to do this... Thank you!
2
votes
1answer
50 views

Something I'm not “getting” about SSH keys: OS portability (Mac to Windows, etc.)

Let's say I create SSH keys in a Mac to connect to my remote server. My server has my public key. My Mac has my private key. So far so good. A few days later, I want to connect to my server by ...
0
votes
0answers
10 views

Log Commands Run Over SSH on Client Side

I am looking for a way to run SSH (OpenSSH in particular, but not necessarily) and log all commands that I run against the remote, to a file locally. Running each command as an independent ssh ...
2
votes
0answers
12 views

Mac OSX unable to SSH connection reset by peer

I have an SSH server running at home and I am trying to connect to it from school. But when I try to connect I get: ssh_exchange_identification: read: Connection reset by peer However, when I ssh ...
204
votes
5answers
41k views

What is randomart produced by ssh-keygen?

When you generate a key, you get "randomart" from newer versions of OpenSSH. I am unable to find an explanation of why, and what I'm supposed to use it for. Generating public/private rsa key pair. ...
0
votes
1answer
21 views

Is it possible to delete directory when in the directory in shell

I have a directory which I run a program in. /usr/bin/my-dir I need to run the program from within the directory So I must go cd /usr/bin/my-dir ./my-program I have a script that from a ...
3
votes
1answer
42 views

How did I manage to combine O and c to © in PuTTY?

Today's mystery: I was going to type the word "Och", meaning "and" in Swedish. However, I ended up with ©h, and I don't know why, and I cannot reproduce it. The chain of software is as follows. ...
33
votes
11answers
104k views

PuTTY Network Error: Software caused connection abort

I have a strange problem: When I'm using PuTTY with SSH connecting to a Linux server hosted in VMware on my local Windows 7, I often get the error saying "Network error: Software caused ...
65
votes
4answers
19k views

Forward SSH traffic through a middle machine

SSH tunneling is very confusing to me. I am wondering if I can do this in Linux. I have 3 machines.. A. My local machine at home. B. Machine at work that I can SSH into (middle man). C. My desktop ...
0
votes
2answers
32 views

In a Terminal profile, how can I set it to cd right after ssh connects?

I'm on OS X, using Terminal (bash) to connect to my web server. I'd like to set up the Profile so that it opens to a specific subdirectory after ssh connects.I don't always want to start in this ...
0
votes
2answers
3k views

SFTP via Terminal Error

I cant connect to a server via sftp any more, I could yesterday. Here is the full sftp -vvv log, maybe you could help me out? Tried deleting ~/.ssh, tried hosts.allow / hosts.deny. No solution at all. ...
0
votes
1answer
22 views

Laggy SSH sessions on local network

I have two machines: Windows 7 connected by ethernet to a router NixOS laptop, connected wirelessly to same router My issue is that sshing from Windows to NixOS is extremely laggy. If I ping NixOS ...
5
votes
5answers
81k views

How to run a command file in PuTTY using automatic login in a command prompt?

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path\to\putty.exe -load "[Sessionname]" -l [user] -pw [password] -m ...
1
vote
0answers
11 views

reset scrollbar iTerm2 or (terminal) under MAC

I am switching from Putty to iTerm2 (windows -> Mac). Is there a way to disable "Reset scrollback on display activity" but enable "Reset scrollback on keypress"? Thank you in advance More ...
0
votes
0answers
8 views

Git: fatal: not a git repository, followed by 'Everything up-to-date'

I'm configuring git for web deployment purposes and have had a bear of a time. After sorting out various permissions issues, I got the error "remote: fatal: not a git repository" and then it lists the ...
0
votes
1answer
9 views

running scripts using SSH Tunnel mac

I have got a SSH tunnel setup using Coccinellida tunnel manager but I really can't work out how the hell I run the scripts I need to!?!? its says it is connected but I have no text area to write the ...
1
vote
1answer
11 views

Android app with ssh-copy-id ability

As the titles says, I would like to copy my ssh key to the server and afterwards disable root password login for security reasons. I'm using JuiceSSH but it seems to lack ssh-copy-id for the free ...
0
votes
0answers
9 views

Pam_krb5, pam_unix and pam_ldap error happen at the same time?

When I try to ssh into machine A (ubuntu1404). $ ssh ktin@machineA.test@somecompany.com password: machineA sshd[16732]: pam_krb5(sshd:auth): (user klin) credential verification failed: Server not ...
2
votes
1answer
13 views

My host offers SFTP only, not SSH. Can I still use private key authentication? i.e., does SFTP use SSH implicitly?

I'm using WP Engine as my host. They are a managed host and they never offer shell access. However, they do allow setup of SFTP accounts. My (limited) understanding is that SFTP still uses an SSH ...
1
vote
1answer
45 views

Time Machine on Ubuntu Server via SSH tunnel - backup fails

I have an afpd up on my Ubuntu server. Everythings works fine in LAN. If I want to make a backup for a user via ssh tunnelling it fails, although it works in lan. The tunnelling works fine. When the ...
0
votes
1answer
30 views

Ubuntu Plesk SSH issues (permitRootLogin)

I got a new Ubuntu 14.04 server with unlimited Plesk delivered and working. If I try to migrate the old server through Plesk's Migration Manager it reports the following issues: rsync execution ...
0
votes
1answer
19 views

Fail if SSH remote host key is unknown

I am using a tool which relies on ssh to connect to a remote host. Unfortunately this tool does not accept user inputs and when the remote host key is unknown the call hangs forever. Is there an ...
0
votes
0answers
4 views

ssh-add issue Could not open a connection to your authentication agent

I'm having a little issue with my ssh-agent. Indeed I can't make it work and I don't understand why. This is the console's output : http://hpics.li/807f3fe I'm sure that ssh agent is running. For ...
0
votes
0answers
21 views

Forwarding high quality graphics from matlab via ssh

I am connecting to a local server that runs MATLAB (version 2015a) via ssh with the X forwarding option (ssh -X). However when I start MATLAB I get this warning: libGL error: failed to open drm ...
3
votes
1answer
2k views

Execute local script requiring arguments on Linux via plink

Is it possible to execute (from windows) a local script with arguments on a remote linux system? Here's what I got: plink 1.2.3.4 -l root -pw mypassword -m hello.sh Is there a way to do this ...
105
votes
10answers
61k views

How do I set up SSH so I don't have to type my password?

How do I set up SSH so I don't have to type my password when connecting to a host?
0
votes
0answers
7 views

vncserver is still allowing connections even after I use “-localhost”

I set up vncserver on a computer I wish to connect to through ssh tunneling. I heard that for security reasons you should add the -localhost option on the server machine so that it will only allow ...
0
votes
1answer
21 views

Copy my ssh key to remote machine via ssh-copy-id in a script without prompt?

My usecase is that i need to copy my ssh key for authorized access onto a remote machine. I need to be able to call a script that copies over my ssh key to the remote machine without needing my input. ...
0
votes
1answer
29 views

The logic of Disabling Root Login

Ubuntu 14.04 VPS user here. My VPS was hacked twice. And the third version is up. Fingers crossed. The mistake I made in the first two was that I had root + password login enabled. I've learned ...
0
votes
0answers
24 views

Forcing server to server copy to use LAN and not WIFI and “Smart” SSH GUI utility?

I have a simple LAN setup consisting of 4 macs with the included ssh servers turned on (all on Mavericks/Yosemite) I regularly sort and move files between the ssh servers. I'm looking for a tool that ...
0
votes
0answers
15 views

Can't increase ulimit in Centos 6.6 - never persists

I'm trying to increase the nofiles limit in my Centos 6.6 system. My user is 'hchiu', and this is what I appended to my /etc/security/limits.conf: * hard nofile 128000 * soft nofile 128000 I've ...
1
vote
1answer
11 views

Conveniently SSH to internal hosts?

I recently discovered that with ~/.ssh/config, I can save a lot of keystrokes and automate long command lines, specifying a lot of per-host defaults. Now that I noticed how powerful the tool can be, I ...
3
votes
1answer
2k views

GIT Identity file not accessible: No such file or directory

Host github.com git HostName github.com user git IdentityFile ~/.ssh/github //I've tried also /home/freinn/.shh/github There's no /home/freinn/github file created, have I to create it? That's the ...
1
vote
2answers
4k views

Linux: wmctrl cannot open display when session initiated via ssh+screen

I'm using wmctrl on an Ubuntu machine to manage windows from a script, that I run inside a (gnu) screen. If I start the screen session from the local machine, wmctrl works fine, including if I ...
1
vote
1answer
41 views

FileZilla public key not working (Successfully loaded 0 key pairs from file)

I currently have troubles logging in with a public key using FileZilla. Neither the root user, not an other user accept the key. Now the strange thing is when using putty it is working without any ...
4
votes
5answers
1k views

Shut down computer using ssh

What ways are there to shut down a computer using ssh? Im running on linux and when I try to shut it down remotely using ssh, it doesn't actually work. I used the command sudo shutdown now. ...
1
vote
4answers
29 views

Restricting SSH Access to Amazon EC2 Instance

I am preparing to set up an Amazon EC2 instance. It will be a testing and development machine to allow me to put PHP, Python, etc scripts on a server without being tied down to a local machine. ...
0
votes
1answer
56 views

Gitlab 7.10 install doesn't create proper ssh git user config?

I am setting up a Gitlab instance on my home VM lab and am baffled with the way SSH is configured in Gitlab so I would appreciate some insight into whether I am doing something wrong or is Gitlab ...
0
votes
2answers
20 views

SSH vs Apache port 443

I want move SSH to port 443, but is used by https. In /etc/apache2/ports.conf I commented the lines for listen by this port. In the default site available also commented the lines. For finish, I ...
0
votes
2answers
63 views

Disable Root — what all issues will arise?

I have a linux server (Ubuntu 14) that I access using root and SSH keys (i.e. no root password). I have also created a non-root-user (and a corresponding non-root-user's-password) with sudo ...
0
votes
1answer
46 views

On a host with two IP addresses, I am getting “no route to host”, but SSH works

I have a very strange problem. A server has two IP addresses on a single network interface: eth0 has 172.20.40.1 eth0:0 has 10.1.1.1 The address for eth0 is static, the one for eth0:0 comes from ...