Secure Shell (SSH) is a protocol primarily for encrypted shell connections.

learn more… | top users | synonyms (2)

1
vote
0answers
26 views

SSH Negotiation Failing To some sites

I use SSH extensively to administer a number of systems. Everything was working perfectly until a short while ago when I discovered I could not SSH into some servers (but others work perfectly). I ...
-1
votes
1answer
70 views

SSH failing to connect, No supported key exchange algorithms

There are numerous questions with the same title however none of the solutions apply to my issue. I get the following lines of error in my sshd log: Jan 6 21:57:55 <computer name> sshd[30103]: ...
2
votes
1answer
25 views

Alias unknown after SSH

$ grep alias ~/.bashrc # User specific aliases and functions . ~/.alias $ grep mydiff ~/.alias alias mydiff='diff --ignore-space-change --ignore-blank-lines --side-by-side --suppress-common-lines' $ ...
1
vote
2answers
41 views

How to set ssh tunnel properly so you can access site on the server as localhost

I've restricted some part of the sites just to localhost access for security reasons. In order to access them i would make a ssh tunnel like this ssh -L 8080:localhost:80 username@server.com and set ...
0
votes
1answer
23 views

Connection lost to VPS While using iptables by default policy as DROP for INPUT, OUTPUT, FORWARD

I'am using iptables in many server's but now stuck with this issue while using default Policy as DROP. Here is my rules which i have used in VPS, Tried many time's everything seems fine but VPS ...
0
votes
1answer
49 views

Bashrc function called ssh doesn't work

I created a function in my bashrc file so that when i ssh into something it automatically opens a tmux session. function ssht () { /usr/bin/ssh $@ -t 'tmux a || tmux || /bin/bash' } This ...
0
votes
1answer
18 views

Can we put condition in ChrootDirectory directive of Match Group in SFTP configuration?

I am using SFTP with active directory. After authenticating users I am redirecting all users to one directory that is upload2. But now I want redirect some users to one directory and some users to ...
-1
votes
1answer
48 views

Secure cloud to internal Mail setup using UUCP or something more modern

Some of our Linux servers are going to be moved out into a cloud. But the servers need to be able to email our users internally and are required to use our domain name as sender. The server cannot ...
-1
votes
0answers
47 views

Allowing root login, but denying any actual logins [migrated]

A friend told me a few months ago about an audit where he discovered root logins were enabled via SSH. This obviously ended up on the report, but when questioned the admin told him that he had set up ...
1
vote
1answer
17 views

gitolite git user asking for password with valid keys

My gitolite installation start to ask for password suddendly, I checked the /var/log/secure file and found this. sshd[9071]: User git not allowed because account is locked sshd[9072]: ...
0
votes
0answers
22 views

Public key authentication plus challenge authentication

I am trying to setup 2-phase authentication based on this guide, but instead of entering the password I would like public key to be involved. If PubkeyAuthentication yes in /etc/ssh/sshd_conf then 2 ...
0
votes
1answer
21 views

Is my private key safe if I use authenticaiton agent forwarding with the ssh -A option?

I love the option to connect to servers via SSH with the -A option, so I can use my private keys on the server. This lets me update git/svn repositories and connect to other servers without the need ...
0
votes
0answers
8 views

ls cannot display utf8 encoded file name correctly when ssh-ing to an OS X machine [migrated]

The problem I'm trying to resolve here is that, in the terminal of an ssh session to an OS X machine, the output of the ls command cannot display utf8 encoded Chinese characters in file names ...
0
votes
1answer
53 views

Ansible/Capistrano with fixed sudo command (“sudo su -”)

I have to administer some half-managed servers (monstly CentOS 6), where we are only allowed to login as a regular user, then do "sudo su -" and type the regular user password, and then run the ...
-1
votes
0answers
8 views

SSH Public Key Auth doesn't work under clean reinstall of OS X Yosemite [migrated]

After a clean reinstallation of my MacBook Pro with current Yosemite, the SSH login to all my servers using Public Key auth stopped working. Generating a new Public Key out of my Private Key and ...
-2
votes
0answers
20 views

ssh and ps crashed on centos server and mysql is broken [duplicate]

We have a web server that hosts our website. Yesterday mysql stopped working and when we tried to start it the service rised this error. ERROR 2002 (HY000): Can't connect to local MySQL server ...
1
vote
2answers
90 views

AWS EC2 timeout connecting via SSH

I've just started using Amazon's free trial, and followed the "Launch an Amazon EC2 Instance" guide to set up the t2.micro instance, but I'm having trouble connecting to it over SSH. I've set up the ...
1
vote
0answers
67 views

Login as domain user fails in Linux

Using pbis, joined a Linux (Ubuntu 14.04) node to the domain successfully. # /opt/pbis/bin/get-status LSA Server Status: Compiled daemon version: 8.2.1.2979 Packaged product version: 8.2.2979.68390 ...
-2
votes
0answers
12 views

How can I ssh into my Cloud 9 workspace? [migrated]

I would like to ssh into my cloud 9 workspace. I have set the default "ubuntu" user's password using sudo passwd ubuntu, although this gets reset every time I reload the ide. I found the workspace's ...
0
votes
0answers
5 views

SSH connection over internet works only for specific machines [migrated]

I have a WLAN with my laptop (kubuntu), a raspi (rasbmc) and a fritzbox 3370 as gateway. I can stablish a ssh connection from my laptop to the raspi when I use the local IP (192.168.X.Y). But if I try ...
1
vote
2answers
78 views

Sending automatic mail on ssh-login fails

I'm trying to let my server send me automatically an email on ssh-login. What I've done: Created a login-notify.sh file (user root, group root, chmod 755) and placed it inside /etc/ssh/ #!/bin/sh ...
3
votes
2answers
122 views

ssh redirect without using port forwarding

I am looking for a way to redirect an ssh connection from one host to another. When a user creates an ssh connection to host foo, I would like the server to return some response which causes the ssh ...
0
votes
0answers
3 views

Cannot SSH into Ubuntu VM from OS X Yosemite [migrated]

I am trying to ssh into a ubuntu 14.04 VM from osx but not able to do so. I have tried various suggestions from googling but none seems to work. Ping does not work either and returns the host ...
0
votes
1answer
34 views

Cannot Execute Certain Commands Over SSH

I have placed a batch file called "CrackHash.bat" in my system32 directory on my Windows computer acting as a server with freeSSHD installed. I can run this batch file just fine through the cmd window ...
1
vote
1answer
76 views

SSH over VPN connection

We have an AWS EC2 server that we've configured to be only accessible (via SSH) from within our office network. Obviously this isn't ideal for remote arrangements where someone has to connect to the ...
-1
votes
1answer
42 views

Create user account on many servers

I have a users.txt with the following content: ip1 user1 password1 ip2 user2 password2 .... ipN userN passwordN I want to create one user on each of these servers. I want to use this script on each ...
0
votes
2answers
44 views

How to record ssh session and email them periodically?

Is there anyway to record all remote SSH client's activity on a linux machine and email them on a periodic basis?
13
votes
3answers
959 views

Enable SSH shell access but disable SFTP access

I've searched for a viable answer to this question, and most of the answers include advice on why to not do it. However, here's the scenario, and what makes it necessary: I have a console app, and in ...
2
votes
1answer
73 views

SSH key authentication using LDAP

In short: Would like a way to do SSH key authentication via LDAP. Problem: We use LDAP (slapd) for directory services and we've recently moved to using our own AMI for building instances. The ...
1
vote
1answer
47 views

SSH from Windows to Jump Server to MySQL [closed]

We have a MySQL instance running on a Linux machine and had to open a tunnel to access the server. This worked fine until admin decided to add a steppingstone / jump server. Now i can't seem to ...
-1
votes
2answers
51 views

“Cannot open SSH Tunnel” on MySQL (corrected)

(help, patience and mercy... begginer lost haha) -Ok heres the deal, im trying to connect a EC2 Instance to MySQL throught SSH in MySQL Worckbrench -I set up the configurations this way SSH ...
0
votes
0answers
16 views

Convenient way to restart server inside vagrant

We have a webserver, that needs nginx and other configurations, so for development we use vagrant. vagrant ssh I want to easily [re]start it, so I use single line ssh commands. vagrant ssh -c "" ...
9
votes
2answers
1k views

SSH MOTD per user

I want to display banner (welcome message) for SSH users with a specific welcome message for each user.
1
vote
1answer
24 views

indirect ssh, connection closed after a single command

I was trying to execute multiple commands through multiple ssh, basically: ssh -t host1 ssh -t host2 ssh -t host3 'cmd1; cmd2; cmd3' I want to execute all the commands on the end host (host3). But ...
-1
votes
1answer
88 views

SSH login works but SFTP login doesn't

I already saw this thread, but it didn't answer my question because it has been left for dead. As the title says, when I log into my VPS with putty, everything works fine. But when connecting with ...
11
votes
1answer
275 views

SSH tunneling is faster than OpenVPN, could it be?

Logically, VPN should be faster than SSH for tunneling, because: It's running on UDP and not TCP (so no TCP over TCP) It has compression However, today I tested Redis replication over both ...
2
votes
1answer
31 views

SSH Remote Forwarding with two hops

How can I make ports forwarded or proxied by ssh available to machines other than the local machine? e.g. machine A connecting to machine B (works) ssh -L8080:some-service:8080 user@machine-B ...
1
vote
0answers
70 views

OpenVAS 7 failing to SSH into a test server

My local machine is hosting a Kali VM. I am trying to run local security tests using the VM's OpenVAS 7 on a server running Ubuntu 12.04.5. When I run SSH Authorization Test I get the following ...
0
votes
1answer
15 views

Easy way to make domain.com/wp-admin/ for all sites on a server accessible only for localhost?

I have problems with attacks to those so thought best would be to limit the access for them only to locahost. But what will be the best (and easy) way to do that?
6
votes
1answer
76 views

How to detect or log interrupted uploads with OpenSSH SFTP server?

I have this problem where a customer of ours has been SFTP-ing truncated data. I'm not sure if the problem is on our end or his. I've enabled SFTP logging but it does not allow me to detect if an ...
6
votes
2answers
1k views

MTU on server accidentally set to 0, can't ssh into it?

My server had some problem with the ssh and I couldn't upload files of size > 10 KB, as scp would hang during the copy. I found a solution for this problem here, and I was changing the MTU, when I ...
1
vote
0answers
40 views

SSH issues: keyfile and host file not working as expected

When I login to server with a key ssh -i /home/me/.ssh/id_rsa server everything goes without glitch. The key is authorized on the server. However if I try to do same from a shell script, I get a ...
-2
votes
2answers
43 views

Restrict SSH access to whitelist IP - what is stopping someone pretending to be from my IP? [closed]

I know I can whitelist a client IP for connecting to SSH on server and then Deny All other IPs. However, seeing as how the packet arriving at the server network interface must include the IP, what is ...
0
votes
0answers
24 views

Forward traffic to MySQL over two+ SSH hops

I am trying to get from my computer through a gateway VPS to the database VPS and leave a forward port open back to my computer so I can access MySQL. For example, using port 9999 on my machine I was ...
0
votes
0answers
24 views

Add ssh credentials from web interface

I'm currently trying to access a mercurial repository from a Jenkins Job. I've already added the ssh private key trough the Credentials plugin and configured the mercurial plugin to use it. The error ...
0
votes
1answer
64 views

Script to Push Files

Script to Push Files Hey Guys, Thanks for always being helpful, I have another issue that I need a little insight on how to fix. See the below script I have and the error I get. I don't understand ...
1
vote
1answer
34 views

SSH -i command not found

I want a run a script located on server 2 from server 1. I am running this command line on server 1: /home/user_x/keys.pem -t -t ec2-user@10.10.10.10 sudo ...
1
vote
0answers
39 views

Nginx error on installing vestacp

I am trying to install vestacp on fresh dedicated server running ubuntu14.04 with nginx installed, however i have tried to remove this using... sudo apt-get remove nginx sudo apt-get purge nginx ...
-4
votes
2answers
29 views

How to run more than one connection on SSH port [closed]

This is a naive question, but I don't know the answer. I have forwarded port 22 on my router to point to my NAS. I also have a Hummingboard server which I'd also like to access through SSH. How can I ...
0
votes
2answers
73 views

start sshd with /usr/sbin/sshd in centos

I am new in linux but newest in Centos. using CentOS release 6.6 (Final) I can start ssh service via service sshd start and get this output Generating SSH2 RSA host key: ...