SSH (Secure SHell) is a protocol for running commands on a remote computer.
0
votes
1answer
43 views
Only allow SSH incoming and outgoing
I am trying to only allow SSH incoming and outgoings on my firewall, but the problem is that FTP can also be used even though I DROP at the end of the script
# Incoming SSH
$iptables -A INPUT -p tcp -...
0
votes
1answer
17 views
Ubuntu SSH alias for remote subfolder
I'm trying to make it ease for me by creating alias for ssh connection to my server. So I created alias in the
~/.bashrc
as follows:
alias aliasname='ssh login@ip -p 59184'
But I want to make ...
0
votes
1answer
23 views
How update title bar on terminator?
I have installed Terminator in my linux Mint on xfce. When I open it, the title bar is correct:
but, when I log into a remote server via ssh, the title bar doesn't update:
How can I fix the title?
1
vote
1answer
25 views
making an automate reverse SSH connection at boot
I have a PC behind a NAT which makes a reverse SSH connection to my Digitalocean VPC. I utilise this reversed SSH connection from home to login to my office PC (I am authorised to do so) and copy ...
0
votes
0answers
13 views
ssh to the same host (tmux session) / load balancing server
I am ssh:ing to ssh-share.myorg.com, which then directs me to a host (host1.myorg.com) with low load. At the host I normally starts tmux etc.
When I later reconnects, I would like to pick up my tmux ...
1
vote
1answer
17 views
log or restrict the source user of ssh login
Is it possible to log and/or restrict the source user of an ssh login?
For example:
user1@server1 logs into server2 as user2 .
also, user3@server1 logs into server2 as user2 .
By "source user" I ...
1
vote
0answers
36 views
Why is my SSH connection being closed immediately after pubkey auth succeeds?
I've two windows machine and trying to SSH using CYGWIN. It works fine when password prompted. However, when I generated the private/public pair, looks like authentication succeeded, but got the ...
0
votes
0answers
17 views
connection refused from server to local host
I have an R script on a remote server. The script needs my local display in order to generate plots.
me@local$ ssh -Y me@remote_ip
me@remote$ echo $DISPLAY
localhost:52.0
$ Rscript myscript.R
...
0
votes
0answers
6 views
Cannot redirect to a webpage after ssh tunnel creation in cgi context
I have this script named test.cgi under my /cgi-bin directory:
#!/bin/bash
/usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -M -S /tmp/my-ctrl-socket -fnTN -L 172.30.26.14:...
0
votes
1answer
18 views
sshpass failing with exit code 6
My setup is the following:
node A is where I start
node B is the gateway machine
node C is the destination.
From Ato B I have setup SSH public key authentication but from B to C I am not allowed to.
...
0
votes
1answer
18 views
method that allows remote SSH server to backup files from a webhost given only SFTP credentials?
I do not know what to search on Google to actually lead me to the right answer. When I tried it says rsync or scp but I do not think this will solve my problem because for obvious reason SFTP-only ...
0
votes
2answers
30 views
How to execute a command requiring “sudo” if it's executed on a remote server by a ruby/python or bash script? [on hold]
I have a python/bash or ruby script which login to my remote server via SSH with no password, via a certificate. And it should execute a certain command which requires "sudo". But it's impossible to ...
0
votes
0answers
14 views
SSH Pseudo-Terminal without option
I'm currently writing my bachelor thesis and have to use OpenTOSCA. We have a NodeType that connects to a Ubuntu 14.04 VM via SSH. I want to start a program in the background, which is not supplied as ...
0
votes
2answers
37 views
does netstat established mean that someone is ssh'd into my machine
I ran the command netstat -lat
and I got this output...
...
tcp 0 0 my.machine.ip.add:ssh 116.31.116.48:43270 ESTABLISHED
tcp 0 0 my.machine.ip.add:ssh my....
1
vote
2answers
48 views
Unable to connect to SSH server from MacOS
On a MacOSSierra I'm running VirtulBox with Ubuntu 16.4 Server (CLI)
I'm trying to establish a SSH connection from Mac to the VM (they are both on the same machine)
Mac Terminal:
usermac-MacBook-Pro:...
2
votes
2answers
26 views
Multiple commands with quotations after SSHing
I have a server I have to ssh into with many commands which feature the use of variable assignment and consequently a lot of quotation marks. If we consider the script:
ssh user@host "kinit -k -t /...
-1
votes
0answers
11 views
I got a .ppk file and IP address from my coleague to hook, but server asks me for passphrase [duplicate]
I need to hook on an Amazon AWS server for Setting up Wordpress. I can't SSH into it. I have the .ppk file and the IP address. My colleague says I can hook onto it, but I am still getting the ...
1
vote
1answer
22 views
SSH Password prompt for a password after ssh keys are configured
Although I placed my public key on the remote machine yet I am still getting the ssh password prompt, here's my ssh -vv output (just the last rows) that might help:
debug2: service_accept: ssh-...
0
votes
1answer
19 views
Automate list files with ssh from Ubuntu to Windows(Openssh)
I am writing some automation API in C working with remote file system via SSH.
The host is running Ubuntu-Linux and one of the target machine is running Windows 7 with OpenSSH installed.
The ...
-2
votes
0answers
20 views
How can I automate the process of authentication with gitlab? [on hold]
The following steps :
Generating ssh keys if not present for the first time login, else using existing keys( keygen command)
copy the key onto server( here it is gitlab)
Change permissions of the ...
3
votes
1answer
193 views
How to add a phrase-less key to ssh agent?
On running the command ssh-add mykey.ppk it asks for passphrase:
Enter passphrase for mykey.ppk:
But I can see that the key does not have any passphrase and is not encrypted
$ head mykey.ppk
...
0
votes
1answer
27 views
Ctrl+z and fg with SSH - why doesn't it work?
Sorry if this question is stupid/obvious, I'm rather new to Linux.
I'm connecting to a VPS using SSH client on Android (JuiceSSH). I run a program, and then send it to background using Ctrl+Z. Then, ...
0
votes
1answer
36 views
Can a server signal a client to run a script WITHOUT SSH reverse tunneling?
I'm trying to set up a lightweight, custom filesync system for myself. I'd like the server to watch for changes to a given folder (with inotify -m), and when it detects any, to propagate them to ...
0
votes
1answer
13 views
Curses interface has blank spaces under GNU Screen and ssh
I'm trying to run an application sbopkg that uses a curses interface in an ssh session running under GNU Screen (Tmux also has the same behavior). If I run ssh directly from the terminal emulator (...
1
vote
0answers
21 views
Reverse SSH - Raspberry Pi and AWS
I have a Raspberry Pi that is connected to the internet via a USB modem.
Due to my ISP, I unfortunately cannot get the public IP address of my dongle itself, and I get the actual cellphone towers.
I ...
-2
votes
4answers
50 views
Automating SSh communication without Password Prompt [duplicate]
I want to communicate host1 to host2 using ssh,
Lets think i have username/pwd of host2 , i want to connect to host2 using ssh via shell script, (which takes username and pwd as parameters)
can ...
-1
votes
0answers
15 views
Using port forwarding to connect to a remote server on a remote server
I don't know if this is possible but I'm pretty sure I need to use port forwarding.
I want to be able to view a web page which is hosted on a server (S1).
This web server is only accessible when ...
3
votes
2answers
44 views
Attempting to connect SSH to a machine using a domain
I am having trouble (only recently) logging into a machine at work.
I have always entered my credentials like [email protected]. But it doesn't seem to work anymore...
I noticed that after ...
0
votes
0answers
10 views
Launch new byobu ssh session window
Is there any command with wich I can launch a new byobu ssh session window from another byobu window (screen) ? I have searched for it and just cant find any usefull info :)
Thanks in advance for any ...
1
vote
0answers
9 views
gvfs-mount won't mount a ssh host specified in config
I am struggling with configuring gvfs-mount to work with a host that is being connected to through a proxy. My config looks like this:
Host proxyhost
User [username]
HostName [domain]
Port [non-...
0
votes
2answers
40 views
ssh-add add all private keys in .ssh directory
In my day-to-day, I need to ssh to various machines, all of which I have a different private key for.
When I start a new shell session - only my default id_rsa is added to the ssh key chain - I have ...
1
vote
1answer
29 views
Delivering docker image to multiple servers without docker machine
I have a couple machines running in an isolated environment. They can be accessed via a bastion machine which has a public IP address. I'm currently trying to automate the distribution of docker ...
0
votes
1answer
29 views
How to find ssh keys from a specific users when they are not located in the /home/{USER}/ directory?
I have discovered that in one of the servers I am using, the SSH Keys are not in the /home/{USER}/.ssh/ directory. I am sure they exist because when I tried to generate a new pair of keys it says that ...
1
vote
1answer
43 views
not able to ping through ssh tunnel device
I am trying to create an ssh VPN (through port 443) to bypass NAT and filtering.
I am using this tutorial. The OS is Debian testing on bolth sides.
The tunnel devices are created on bolth sides, and ...
1
vote
1answer
38 views
Trying to SSH into server and getting key_load_public: No such file or directory error
I created a passwordless ssh connection to my remote server from my mac. It worked(!) and then I closed my terminal, re-opened it, tried again, and got the following (username, my_ip are not real):
...
1
vote
1answer
37 views
Disable Arcfour encryption
I'm new to this but have been searching everywhere for a clear answer.
To pass PCI compliance the Arcfour cipher should be disabled.
I've tried to edit the ciphers in my sshd_conf and ssh_conf files ...
3
votes
1answer
38 views
Unbuffered socat command to connect serial ports in remote machines and log the data
I'm currently using the following command. It reads from serial ttyUSB0 in local machine, and bidirectionally connects to ssh, through two tee commands for logging. On the remote end, socat connects ...
0
votes
0answers
25 views
Monitor every try to connect to SSH
How to monitor every SSH connection in real time?
I mean:
Client Side: Putty.exe -> YOUR_IP -> Connect.
Server Side: Notification -> "-Client IP- Just tried to connect to this server"
Is there any ...
4
votes
1answer
55 views
How to confirm ssh fingerprint
I work on Windows 10.
I PuTTY ssh into physical:CentOS7, virtualbox:CentOS6,7 & Ubuntu 16.
On 1st ssh FROM Win TO vb:Ubuntu & I get the regular ole server/fingerprint not a known host popup. ...
1
vote
2answers
596 views
“PermitRootLogin no” in sshd config doesn't prevent `su -`
The problem is that I really don't know if I am confused with PermitRootLogin or it is not working well.
I put it in the sshd_config, and when I connect via ssh, I am able to do su - in order to have ...
4
votes
7answers
236 views
How to copy big data over network?
I have a HP Microserver gen 8 with Centos 7 and only one hard disk in the bay area, 2 TB, mounted as NTFS.
I'm trying to copy files (about 100GB at once) over network from local.
I've tried with the ...
0
votes
1answer
22 views
SSH through public lan with same hostname
So I got my machine say it's IP is 10.0.0.123 and my Cisco lan switch is 10.0.0.1 my public IP is 10.103.6.1. and my other network is the same but it's public IP is 10.104.6.1.
So the question is ...
1
vote
0answers
14 views
What is exactly is going on with my jenkins user?
I have installed Jenkins and I have jenkins as a user in my /etc/passwd:
jenkins:x:995:993:Jenkins Continuous Integration Server:/var/lib/jenkins:/bin/bash
nginx:x:994:992:Nginx web server:/var/lib/...
-1
votes
1answer
21 views
Why is it private key to specify with -i option in ssh client?
It is said in ssh man:
-i identity_file
Selects a file from which the identity (private key) for public key authentication is read. The default is
~/.ssh/identity for ...
1
vote
1answer
20 views
Restore upgrade after crash ssh
My ssh connection crashed during a whiptail about php.ini. (update apache)
Is there a way to recover everything smoothly ?
root 20689 0.0 0.0 20036 2284 pts/1 S+ 10:15 0:00 whiptail --...
0
votes
1answer
24 views
SSH SFTP Only With chroot and command
I try to restrict access to SFTP Only with one User Account. After Login there should some commands be executed.Therefore i inserted forcecommmand in my sshd_config:
Match group stream
#...
1
vote
0answers
50 views
Using a local shell on a remote machine
I use zsh with a bunch of customizations on my local machine. I recently started using homemaker to manage all my dotfiles in a git repo on a private server. However, it always strikes me as awkward ...
1
vote
1answer
30 views
Access local gpu when ssh into remote server
I'm trying to run a very graphically unintensive program on a remote server. However, it has no GPU capability, and thus the program just returns an X Window System error. The program runs fine on my ...
0
votes
1answer
31 views
Serial/SSH Communication
I have a Linux module.
I need to receive messages via SSH and transmit them using serial and vice versa.
Basically I want a pipe or a gateway between a SSH and Serial device.
Can anyone provide ...
0
votes
2answers
27 views
Find & remove files that are uploaded through Cpanel x minutes ago, using SSH
I have a Cpanel login of remote system into which I have uploaded a number of folders and files scattered throughout the structure.
But I remember that I did this a few minutes ago, roughly x minutes ...