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

learn more… | top users | synonyms

-4
votes
1answer
47 views

How to disable ssh remote login using tcp wrapper [closed]

I want to use tcp wrapper to disable ssh remote login from a client on the server. How do I find out if sshd supports tcp wrapper and hence use it to disable ssh login?
0
votes
1answer
30 views

How to check connectivity between opensuse vm client and server and how to remotely log in

I am new to openSUSE, I created an openSUSE VM acting as the server(Server_VM) where I enabled secure shell server and created a user account client_01 that is going to be used to access Server_VM ...
1
vote
0answers
63 views

CentOs 7 - MobaXterm - X11 Forwarding per user

I am using MobaXTerm to connect to my CentOs 7 Server. I have set X11Forwarding yes in my /etc/ssh/sshd_config file. The root user is able to start the X11-Gui for example gedit. The other users ...
1
vote
1answer
63 views

How to use SSH tunnel to connect to remote MySQL server?

I am trying to connect to remote MySQL server, which runs on CentOS 6.6 cPanel server. I am creating tunnel this way: ssh -L 3306:xxx.xxx.xxx.xxx:3306 user@xxx.xxx.xxx.xxx -p PPPPP Where ...
2
votes
2answers
106 views

iptables: No chain/target/match by that name - adding SSH ATTACK rule

I have a problem with adding rule against brute-force SSH attacks. I try to do it in the following way: iptables -F iptables -L iptables -N SSHATTACK iptables -A SSHATTACK -j LOG --log-prefix ...
1
vote
2answers
169 views

Scp command over ssh without password in script

Here is my problem: I would like to perform scp command after ssh to remote server without typing any passwords. I describe my steps. My first steps were: ssh-keygen -t rsa and local@host$ ...
3
votes
1answer
379 views

How to set a dynamic Message of the Day (motd) in Debian Jessie 8.2 for ssh?

I would like to have a dynamic motd, but I can't figure out how to do it. I tried what I found, adding /etc/update-motd.d/00-header, 10-sysinfo, 90-footer, and symlinking to /etc/motd ...
3
votes
1answer
410 views

How to see what accounts connected with ssh are running

Using the question here I can see the users connected with ssh. Is there a way to see (from terminal) what program the users connected with ssh are running? EDIT The ssh users are running commands as ...
4
votes
1answer
26 views

How to avoid calling 'startx' upon ssh login

my current situation is that in my .zprofile file I have the following line I found somewhere on the internet [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx I think it's ...
2
votes
0answers
78 views

Dropbear immediately drops connection on DD-WRT

I have a home wireless router running DD-WRT. I am unable to SSH into the router (Dropbear) even after restoring default settings and reinstalling the DD-WRT firmware. So I tried to SSH into the ...
4
votes
1answer
35 views

Unlock the encrypted Volumes after restarting the server via SSH

I used the sudo shutdown -r to restart my Mac server via SSH. However, after restarting the server, I discovered that two volumes are offline due to encryption. What I am trying to do is input the ...
2
votes
0answers
23 views

SSH pageant not working

I'm running mobxterm as my windows ssh client, I have enable "use external pageant & forward ssh agents" but I still cannot get it to work. I know authorized_keys are set correctly as its ...
2
votes
1answer
26 views

tunnel netcat video streams to mplayer

I am sending a video stream over my network and I want to encrypt it with ssh. This solution below works: on machine 1 I run ./capture | nc 192.168.1.65 5001 on machine 2 I run netcat -l -p 5001 ...
3
votes
1answer
56 views

setting up SSH reverse tunnel [duplicate]

I have the following setup: I would like to be able to ssh or vnc from home computer to work computer. I think that I could setup some permanent ssh (reverse) tunnel to get this all going, but I am ...
2
votes
1answer
71 views

Limiting user SFTP only to their home directory

Ubuntu 14.04 I'm trying to restrict all users of a certain group to their home directory. They should be able to SFTP to the directory and read/write whatever they like within there. I have ...
2
votes
1answer
53 views

ssh ignores ssh-agent

I'm using a new system and ssh is ignoring my ssh-agent. Note I've been doing this for years elsewhere, it is not a new thing I am confused about. With bash: > echo $SSH_AGENT_PID 1234 > echo ...
1
vote
2answers
39 views

Permission denied scp'ing large file

I'm trying to copy a 4.5GB file to my Raspberry Pi: scp -r ~/firmware/ pi@192.168.2.8:/opt/ pi@192.168.2.8's password: scp: /opt//firmware/.DS_Store: Permission denied scp: /opt//firmware/.git: ...
2
votes
0answers
49 views

No delay between ssh login attempts

I recently had some problems I believe to be related to pam, but still for some reason there are no delay between login attempts. When searching around, people seem to only have the opposite problem: ...
5
votes
0answers
91 views

Linux iptables ssh port forwarding (martian rejection)

I have a Linux gateway performing NAT for my home network. I have another network which I'd like to transparently forward packets to, but only to/from specific IP/ports (ie. not a VPN). Here's some ...
1
vote
1answer
47 views

CentOS 7 setting default port

I've been doing some maintenance on a CentOS 7 server and I noticed that it wasn't using the default ssh port (22). I changed it back to it's Port 22 in the sshd_config which works but when I try to ...
1
vote
1answer
47 views

OpenVPN connection on remote server blocks all incoming connections

I login into remote server (DigitalOcean) by SSH, and start OpenVPN client there. When this client gets connected to its endpoint, my SSH connection breaks. After that I cannot connect to server or ...
1
vote
2answers
53 views

How to properly use ssh ControlMaster [duplicate]

I have a script which runs several commands remotely through ssh. I'm running each command separately because I want to do other things in between executions. However, I don't want to recreate an ssh ...
2
votes
1answer
35 views

manually redirecting X output through ssh

I have a remote server, on which I am able to log in with ssh. However there is no home directory for my user. When I try to ssh -X to that server, ssh tries to put a cookie into ~/.Xauthority which ...
1
vote
0answers
36 views

Can't sftp into server in Mint

This isn't my strongest suit. I have tried multiple fft/sftp programs in Mint, and I cannot sftp (ssh) into the server. I have the exact same settings in xubuntu on another machine and it hooks up ...
2
votes
0answers
32 views

SSH - Unable to access local forward from another host

I have a VPS with 2 public IPs (assume 1.1.1.1 and 1.1.1.2) I am trying to do a local tunnel to my router on my VPS bound to the second IP, and then access it via another machine. I do the following ...
2
votes
0answers
23 views

Certain folders are always missing using Rsync to server

I have tried several different ways using rsync modules and ssh trying to pull my linux desktop from my freenas server and no matter how I do it, certain folders are always missing. I am trying to ...
1
vote
1answer
50 views

SSH login keeps kicking me out

I am on Centos 6.6 and recently updated my server using yum, it updated a bunch of things and everything seemed fine, but I was also trying to update Ruby RVM and Node.js and NPM (Node Package ...
1
vote
1answer
34 views

Chdir fails even though the user has a home directory assigned

I'm facing this problem - when I ssh to the server, the user is authenticated correctly, but then the connection is closed with: Could not chdir to home directory /home/blazej: No such file or ...
1
vote
0answers
67 views

Java Process hangs with .exec and ssh

EDIT: I believe the issue is that the ssh connection is creating background connections that are still open (cf. http://superuser.com/a/617670). I would run ssh with the -f flag, but I need to be sure ...
1
vote
1answer
60 views

Find the hostname or IP of a remote ssh session in Solaris

If I am logged into a Solaris server from my Windows laptop via putty using ssh, how, on the server, can I determine my Windows laptop IP or hostname?
2
votes
1answer
66 views

Run SSH over a SOCKS proxy?

I need VPN-like behavior locally, without using a VPN. I've created a SOCKS proxy to a given server which is reachable from the WAN, and I want all of my traffic forwarded through that proxy so I ...
3
votes
1answer
68 views

Does SSH access trigger keyboard interrupts?

So, I've been studying the basics for my LPIC-1, and I have a question about /proc/interrupts When consoled into a server, I can see key logging occurring (cat /proc/interrupts | grep i8042 count for ...
4
votes
2answers
179 views

Unable to SSH Using a Private Key Through Bash Script

To start with, I apologize if this is a painfully obvious/trivial issue, I'm still learning the ins and outs of linux/unix. I work with a few servers that require access via ssh and private key to ...
1
vote
1answer
89 views

port 22 closed. Can not ssh even after restartingt the instance

Accidentally, Port 22 got closed. Can not ssh into the instance, though the instance are running well on other desired ports. Getting following error while doing ssh. ssh: connect to host X.X.X.X ...
1
vote
1answer
23 views

Check whether Built-In Audio is active from different user login

In my job, I support remote employees running Linux Mint via SSH and VNC. Each employee uses a USB headset, which is the only sound device we want to be active. The sound device we need to disable ...
3
votes
1answer
54 views

Auto sudoers entry on ssh login by a non-sudo user

This problem I am facing in Gcloud VM (ubuntu 14.04 image). As a admin user, if I create another user say UserNew without giving sudo privilage to him. sudo adduser UserNew I carefully checked ...
2
votes
2answers
62 views

Screen - weird behavior after exiting Vim

I am facing problems with my configuring screen. My screen.rc is very simple and looks like this: altscreen on termcapinfo xterm ti@:te@ I wanted to configure screen to have the same behavior as ...
1
vote
1answer
32 views

How to understand output from “ssh -O check” in bash scripts?

I want to check the master process listening on ssh.sock is still alive. Currently I'm checking whether the exit code returned by ssh -S ssh.sock -O check <my-server> is zero, but I'm not sure ...
1
vote
1answer
61 views

ufw allow ssh - and then connection gets lost

I'm trying to set up a debian server in the cloud, over SSH. I log in using a key. After the initial startup I want to set UFW: apt-get install ufw ufw allow ssh ufw enable This is how I've done ...
1
vote
0answers
28 views

Error with `ssh -Y`, error in locking authority file

I am using X11 over the secure shell with the "trusted forwarding" flag, i.e.using trusted forwarding with ssh -Y Today I have been receiving the following error: /usr/bin/xauth: error in locking ...
2
votes
2answers
57 views

Run a command in an interactive shell with ssh after sourcing .bashrc

I want to ssh into a remote Ubuntu computer, source my .bashrc and run a command that depends on parameters set by that .bashrc. All that in an interactive shell that doesn't close after the command ...
1
vote
2answers
117 views

Why can't I authenticate to GitHub?

my_username@my_username-laptop MINGW64 ~ (master) $ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/c/Users/my_username/.ssh/id_dsa):Enter Enter ...
2
votes
1answer
36 views

How do I set a script to randomly print to a user's SSH session without setting it up as a Cron job?

I'm managing a small server at work that we use for Samba and SSH. I'd like to mess around with my coworkers by having a script run at random times of the day where it fetches a random quote ...
1
vote
2answers
104 views

SSH login not accepted, and no delay between ssh login attempts

When ssh'ing to my server (RaspPi running Arch), it doesn't accept my password (which I'm 98% sure is correct), and the usual delay before Permission denied, please try again. is not there. Elsewise, ...
1
vote
1answer
36 views

How can I reach a remote ssh server through my http proxy (80 port)?

I want to reach a remote ssh server through or over my http proxy. My proxy requires authentication, so I am a little lost.... could somebody give me a hand? Thanks in advance.
1
vote
3answers
19 views

Get current execution of command out in ssh?

There is a thing that I need help with. I am running a simulation command in a servr using ssh, from my terminal. The simulation is running for 10+ hours. I am expecting output after 15+ hours. ...
4
votes
1answer
29 views

How do I stop ssh from offering other keys?

I have some server dev.example.com and in its authorized_keys file I have my ~/.ssh/id_rsa.pub key. I also have an ~/.ssh/my_test.pub key. My ~/.ssh/config specifies that for dev.example.com it ...
3
votes
2answers
138 views

Why does ssh-copy-id with a non-`id_rsa` file on Mac OSX tell me that my key already exists?

I am trying to use a non-standard key name to copy to the remote server but it's telling me that the key already has been copied: $ ssh-copy-id -i /Users/wwerner/.ssh/my_other_key me@example ...
3
votes
2answers
58 views

SSH to same directory on remote as local

I am trying to write a small function in my .bashrc on my dev server that will give me a red shell on our production server that opens in the same location as I am in on the dev server. The bash shell ...
1
vote
1answer
44 views

ssh tunnel and oracle

On oracle server i can connect clear sqlplus user/pass@hostremote/SID If i make a tunnel ssh -L 1521:localhost:1521 -F -n hostremote -vvv give me debug1: Connection to port 1521 forwarding to ...