SSH (Secure SHell) is a protocol for running commands on a remote computer.
2
votes
1answer
52 views
SSH lets me login with a password even though I set “PasswordAuthentication no”
I'm trying to turn off password authentication for SSH after setting up public key access. I have these set in my /etc/ssh/sshd_config file:
PermitRootLogin without-password
PasswordAuthentication no
...
5
votes
1answer
58 views
Forward all ports SSH
I have a question about SSH/Port forwarding. I haven't found the solution anywhere and don't know if there is any.
I have a server behind my NAT box at home. I have port forwarding from my NAT box to ...
1
vote
1answer
39 views
Having the 'id_rsa.pub' file in my dotfiles public repo securely
So this is something that I'm wondering, how can I have this file in my dotfiles GitHub repo?
I'm sick and tired of having to generate a new SSH key every time I'm on a new computer or re-install my ...
0
votes
1answer
39 views
ssh private key stops accepting my passphrase
When booting my laptop today I found that ssh (openssh) simply refuses to accept my passphrase when reading my private key. My only idea of how that could've happened is if the HDD has somehow ...
2
votes
1answer
100 views
Getting no tty present and no askpass program specified when using git over ssh
I'm trying to push a git commit from my laptop to my server but keep getting the following error message:
remote: sudo: no tty present and no askpass program specified
To ...
1
vote
1answer
27 views
How to troubleshoot failed X11 forwarding with ssh?
When I try to establish an X11-forwarding connection to myserver, I get the following error:
% ssh -X myserver xlogo
X11 connection rejected because of wrong authentication.
X11 connection rejected ...
0
votes
2answers
44 views
ssh with identical machines
I have two identical beaglebones that I'm working with. They have the same hostname and originally had the same IP, though I changed one to see if that made a difference. They're going to be deployed ...
0
votes
2answers
26 views
can't update with this error messg
I got this message:
not enough free disk space.... The upgrade needs a total of 31.8 M
free space on disk '/boot'. Please free at least an additional 31.8 M
of disk space on '/boot'. Empty ...
1
vote
2answers
168 views
Use socks proxy for commands in terminal
I connect to a remote ssh server by running this command:
ssh -D 12345 bob@myserver.com
This creates a socks proxy that I can use with Firefox to bypass censorship in my country. However, I can't ...
1
vote
1answer
120 views
Passwordless ssh on archlinux (after ssh-copy-id still prompts for password) [duplicate]
On ubuntu/mint, all I need to do for passwordless ssh login is:
ssh-keygen -t rsa # on both pc
ssh-copy-id targetpc
ssh targetpc # does not prompt from password anymore
and that's all..
I do the ...
2
votes
2answers
69 views
End process from another SSH window
I forgot to use screen and I have a task that has been running for quite some time, and I do not want to lose the saved data. Basically Ctrlc will end the task and save the data if I am on the same ...
3
votes
2answers
73 views
Grant ssh access for single session
I wonder if there is a tool/modified ssh-server/ssh option which enables me to grant ssh access for a single session to a given user. What I want to avoid is creating a user account and password for ...
0
votes
1answer
49 views
Keep the ssh session
I am using Macbook developing a client application.
I want to access server logs, so I opened a shell terminal and established a ssh connection to the server and access the log file there by ...
0
votes
2answers
46 views
DenyHosts and no-ip.com
I recently installed DenyHosts and after a few remote logins I noticed that sshd: 8.23.224.110 had been added to the host.deny file after /var/log/auth.log showed a few sshd: Did not receive ...
0
votes
2answers
45 views
scp hangs on SSH2_MSG_SERVICE_ACCEPT received
I frequently scp my file to remote host. But suddenly it started taking more than 30 seconds to copy 20kb file.It used to take not more than half a second.
After referring to some blog I appended
...
1
vote
0answers
61 views
preventing the screen from being cleared when exiting an ssh session
I have rdist set up to push out some of my dot files to all the remote machines that I need to ssh into. I also have zsh as my default shell on all of those machines.
When I ssh into a machine and ...
1
vote
1answer
70 views
SSH disconnects when screen locked with vlock
I'm using tmux + PuTTY to get all the UNIX goodness I need when using Windows. I have the following settings in my .tmux.conf:
set-option -g lock-command vlock
set-option -g lock-after-time 1800
As ...
2
votes
1answer
110 views
Restrict two way SSH and Apache authentication to non-local networks
I am using Google's open-source PAM module for two-way authentication for SSH logins and certain Apache directives. It works great, however I would like to use this only when trying to log in from an ...
0
votes
1answer
131 views
Unable to login to my server using ssh
Yesterday I was migrating to my new server, needed to use rsync, I created a RSA key, so that rsync could connect, I saw an error that says add to trusted key in location x I didn't have that location ...
0
votes
2answers
80 views
Transfering files using ssh
I've found the following command pretty convenient for transferring files to servers I have ssh access to:
cat myfile.txt | ssh my.host.edu "cat > myfile.txt"
Is there a similarly convenient ...
0
votes
1answer
76 views
non root ssh keys help
I'm having issues setting up a different CentOS account with its own pair of SSH keys.
I have created the required files but when connecting with Putty it says Connection refused, here's the putty ...
6
votes
2answers
105 views
ssh-agent: don't forward authentication for the whole keyring
I have two private ssh keys :
one to access my personnal machines,
one to access servers at my job.
I add those two keys to my ssh-agent with ssh-add.
Now, when I do ssh -A root@jobsrv I ...
0
votes
1answer
65 views
emacs fonts from ssh not as good as locally installed
How can I have the same emacs fonts and antialiasing configuration that I have in my local Ubuntu 12.04 also working when I open an emacs session via ssh to a CentOS 5 system?
EDIT: I didn't get an ...
0
votes
1answer
33 views
Synchronizing subdirectory with root directory
I have files like this on my linux web server:
folder1/ <- main, this is where users of my page are led to
folder1/testing/ <- copy of folder1(without folder1/testing/) to modify and optimize ...
0
votes
1answer
33 views
Copy modified files from one server to other
Scenario:
2 Servers (*.12 and *.13)
CakePHP "application" on both of them.
*.12 is "Production" Server
*.13 is "Development" Server
Now i want to copy all files modified the last 2 days from test ...
0
votes
0answers
50 views
Why can't the sudo user overwrite files by SFTP?
What permission is needed to let user (sudo) overwrite the files on my VPS over SFTP?
3
votes
1answer
149 views
scp and compress at the same time, no intermediate save
What is the canonical way to:
scp a file to a remote location
compress the file in transit (tar or not, single file or whole folder, 7za or something else even more efficient)
do the above without ...
1
vote
1answer
56 views
Access X-window and sound on laptop on another Unix
I read up a lot about forwarding x-server onto remote machines, but I feel like I'm too dumb to get it to work. Let me first explain my goal:
I have a Rasberry Pi running archarm hooked up to a TV. ...
2
votes
1answer
99 views
How to password-less log on via ssh alias
Suppose I have access to pc via a server. I can directly log-on to pc by using How do I connect to a pc through another pc using ssh
Such that my .ssh/config looks like:
Host short
Hostname pc
User ...
1
vote
1answer
140 views
Transferring Files SSH SCP Error Message: 'Stdin: is not a tty'
I am using a Macbook SSH terminal and generated RSA key pairs and uploaded remote id_rsa.pub with approved permissions. I can connect with remote Apache web server. I can create, open, move, modify ...
1
vote
1answer
117 views
How to put value of echo pipe netcat commands into variable [duplicate]
I have this command succession:
echo -ne "/dev/shm/test.sh" | netcat 89.196.167.2 4567
and let's say it return a string like, for example "Hello...bla".
(on the 89.196.167.2 i have made a server ...
0
votes
2answers
96 views
Automated ssh-keygen without passphrase, how?
I would like to make an automated script that calls ssh-keygen and creates some pub/private keypairs that I will use later on. In principle everything works fine with....
ssh-keygen -b 2048 -t rsa -f ...
1
vote
1answer
44 views
doing an rsync across multiple machines
I have the following setup: Machines A, B , C running linux. I have to do a continuous rsync from machine A to machine C and have a script for that. However, the access to machine C from machine A is ...
1
vote
5answers
270 views
How to securely automate running commands as root with “sudo su -”?
hint (on client side, how to encrypt files/pwd's):
# encrypt pwd with ssh key:
openssl rsa -in ~/.ssh/id_rsa -outform pem > ~/.ssh/TEMP-id_rsa.pem 2>/dev/null
openssl rsa -in ~/.ssh/id_rsa ...
0
votes
0answers
19 views
Using rsync without adding ssh user [duplicate]
How to give an user access to rsync (as www-data user), without giving him an ssh user (because i afraid that he could do something with my computer), how can i do this?
0
votes
3answers
408 views
How can I share files between two Linux machines over LAN?
I am currently running Fedora 18 with Gnome on two computers which are connected to the same router. I have been using Samba to share files between the two, but I know there must be a better way.
On ...
1
vote
2answers
143 views
How to transparently monitor SSH access/network traffic in Gentoo/general linux?
What's the most effective way to monitor SSH access in Gentoo Linux?
My Gentoo box is operating locally behind my broadband router. I have SSH port forwarding on the router and a DNS entry pointing ...
1
vote
2answers
115 views
Connecting to host by SSH client in Linux by proxy
I am really struggling with this.
My host (A) is behind a proxy/firewall (PF) and needs to connect to
host H.
The proxy has HTTP/FTP/SOCK proxy configured and I have no issue to configure in ...
0
votes
1answer
28 views
How to identify which application is trying to access the unixbuild server?
The error message I am seeing is:
Failed publickey for raj from 10.*.*.** port 34355 ssh2
Mar 18 05:22:34
unixbuild sshd[16956]: [ID 1000034 auth.info] Failed password for raj from 10.*.*.* port ...
-1
votes
1answer
58 views
SSH File Transfer
Is it possible for me to use SSH to transfer files from my linux computer to my macbook, if so, can anyone post a brief tutorial? I kind of understand how to use SSH, but I need to know how to find ...
0
votes
0answers
56 views
Local host always being added to /etc/hosts.deny when trying to SSH
I have a rather odd problem with my server. For some reason the local hostname for my workstation keeps getting added to the /etc/hosts.deny and when I try to SSH I get:
ssh_exchange_identification: ...
2
votes
1answer
104 views
SSH via Corkscrew to a remote server not working
I am trying to SSH to a remote server from my college network (proxy). However, I am getting this error whenever I try to SSH to the host
ssh_exchange_identification: Connection closed by remote host
...
2
votes
1answer
54 views
Configure SSH keys for production and DR server
Here is the case, we have successfully configured SSH keys (and hence password-less SFTP connection) between ProdServer-A to ProdServer-B. It works, or so I thought still yesterday. Yesterday ...
2
votes
2answers
89 views
Detecting monitors on machine over local ssh connection
I need to write a script to check on video related things on machines in the local network, e.g.
Is a monitor plugged in?
Are the video drivers up to date and appropriate for the hardware?
Is Xorg ...
-2
votes
1answer
56 views
How to fetch logs from diffrent servers using one command? [closed]
How to fetch logs from diffrent servers using one command?
For example, suppose I want to fetch logs for same id in different servers.
I have to go to each server and search for logs.
Is there any ...
12
votes
2answers
421 views
(SSH) Is it dangerous to close terminal without “exit”?
This happened many times.
While the SSH active, I'm so tired and just close the terminal without exit
Is it dangerous to doing like that?
2
votes
2answers
61 views
Remote access SSH problem
I have been asked to setup a lab with 1 PC (fedora 18 OS) and 4 SGI (IRIX 6.5 OLD OS).
I am using a switch to connect them to university's network, and I asked tech guys to assign static IPs to them. ...
0
votes
2answers
234 views
access a command line via a web browser
2 questions:
Question 1
My job blocks ssh which means that I cannot ssh to my home server. However, they do allow https out. Is there a package out there for ubuntu that will allow me to connect to ...
0
votes
1answer
47 views
SSH -L Tunnel no longer working
Local machine running my scripts needs to access a remote server's DB.
Last week I could do, on the local machine
ssh -f -N -T -L1081:localhost:3306 ueser@remoteserver -p2222
on the local machine:
...
1
vote
2answers
86 views
SSH client side problem: hanging and timing out on some hosts
From my laptop I'm trying to connect to HOST1 and I get:
$ ssh -vvv user@HOST1
OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: ...