Tagged Questions
2
votes
2answers
55 views
Open file in local text editor from within an SSH connection
I'm not a vim guy. I'd like to be able to open log files in Sublime Text when in an SSH connection from within Terminal. Is there a way I could do this? I'm thinking there must be a command or ...
1
vote
3answers
101 views
How to paste multiple Bash commands into a shell without losing some?
It's nice to copy-paste a series of Bash commands that you find on a website. But depending on the commands, sometimes you lose a few. Maybe they get swallowed up by programs that read from standard ...
0
votes
0answers
23 views
osx SSH + Git to a remote server with user/pw
A bit of a disclaimer; I'm new to both GIT and SSH as well as OSX so sorry for being a bit bad at explaining the problem.
So, I'm trying to reach a GIT repository on my work's server. The structure ...
0
votes
1answer
24 views
Tool for editing text before sending to via a slow ssh connection?
I often ssh to a remote machine and work in an interactive shell (e.g. pry). If the ssh connection is slow, typing complex commands is very tedious because of the delay in echoing back the ...
1
vote
0answers
36 views
Back up to Time Capsule remotely via SSH + iMac
I wonder if it's possible to connect from my MacBook at home to my iMac at work, using SSH and then bind 'whateverport' to my Time Capsule (placed at work) so I can backup my MacBook from home as ...
1
vote
2answers
34 views
How can I make OS X forget SSH passphrase when I close lid/after a certain amount of time?
I'm using Mac OS X 10.8.3 and openssh, basically I have the inverse problem to most people in that I want to make my laptop automatically lock the keychain (specifically my private key) every time I ...
0
votes
1answer
26 views
ssh key regeneration for github
I was playing about with ssh keys, and stupidly deleted the github keys in my .ssh folder.
Now i get
Error: Permission denied (public key)
When i try and connect to a remote repo.
I have ...
0
votes
1answer
29 views
Can I change the filename of my ssh public/private key pair?
I created a public/private key pair:
ssh-keygen -t rsa -C "me@example.com"
I gave a different key file name than id_rsa since I wanted to create a new separate key from my normal identity.
I gave ...
0
votes
2answers
56 views
Script to auto execute creation of ssh tunnel
I'm a CS student, and still learning a lot of these things, and so please bear with me if I don't have a full grasp on what I'm trying here.
I'm on a Mac, connecting to a linux machine. I can set up ...
0
votes
1answer
26 views
How to regain control over Terminal after waking computer
I'm using Mac, but I don't know if this matters. Anyway:
In Terminal, do SSH to a remote host.
Close lid. (The network connection is cut off at this point).
Wait. Open lid again.
Some times, the ...
0
votes
1answer
25 views
Where do I store sshfs configuration settings?
When using sshfs several sites recommend using options like:
-oauto_cache,reconnect,defer_permissions,negative_vncache,volname=RemoteHome
I tried adding these in ~/.ssh/config under the hostname:
...
0
votes
1answer
7 views
Unable to keep remote job running on OS X
I just got a MacPro and am trying to work remotely on it. But when I ssh into it and
start a job, put it in the background, and log out, the job apparently goes to sleep.
So when I log back in and ...
0
votes
0answers
28 views
Connect through VPN for a single SSH session (OS X)
I want to be able to connect (SSH) to a remote server that is whitelisted to my organisation's OpenVPN server. Currently I can do this by starting TunnelBlick, then SSHing.
Disadvantages:
Need to ...
2
votes
0answers
47 views
Launchd not launching ssh-agent after plist edit
I'm trying to reconfigure my ssh-agent to have a timeout via the -t argument.
I edited /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist
<array>
...
0
votes
2answers
20 views
Keep remote session
I am using Macbook developing a client application.
I want to access server logs, so I opened a shell terminal & established a ssh connection to the server & access the log file there by ...
0
votes
2answers
55 views
ssh to localhost
I am following some steps from a wiki to install Hadoop, Cloudera, etc...
One of the steps is saying "ssh to localhost" and make sure you don't get a pass phrase,
I was getting pass phrase indeed, ...
0
votes
1answer
35 views
fatal: error when closing sha1 file: Permission denied
I am attempting to create a local git repository using a mounted linux drive (via SSH via ExpandDrive) from my mac using GitBox, however when I attempt to make a commit I continually receive this ...
0
votes
0answers
29 views
Where is the (private key) identity stored when connecting to a server with ssh -i?
I find that once I connect to my Amazon EC2 server using the provided private key via ssh -i /path/to/privkey.pem, subsequent attempts to ssh to the server do not require specifying the path to the ...
1
vote
1answer
70 views
OS X - make ordinary SSH commands use SSH config
Here is a (somewhat redacted) listing of my ~/.ssh/config under OS X 10.6.8 Snow Leopard:
Host *
IdentitiesOnly yes
Host foo1
IdentitiesOnly yes
User foo1
HostName example.com
...
0
votes
1answer
66 views
Deleted SSH keys, now annoying message “Identity Added” on every Terminal launch
So, while trying to work out passwordless login to some remote systems (which is an entirely different issue :) ), I ended up deleting and regenerating my ssh keys with ssh-keygen on Mountain Lion.
...
0
votes
3answers
498 views
How do I ssh-login into my Mac as root?
For some reason I can't login as root into my Mountain Lion 10.8.2.
I've already edited /private/etc/sshd_config file by removing the comment from
PermitRootLogin yes
and restarted Mac. Still it ...
0
votes
0answers
14 views
SSH to remote Mac not on local network [duplicate]
How can I SSH to a Mac using Terminal without using iCloud (don't have the same iCloud on both Macs)?
I need to connect to a Mac with SSH through the Internet, because the other Mac is not on my ...
0
votes
1answer
40 views
How can I use Interarchy/Filezilla etc with SSH keys?
I have a server which I connect to with the command line using a stored ssh key, i.e. there's no username/password, I can just connect with ssh servername because the key is stored in the right place. ...
1
vote
1answer
148 views
Starting Dropbox on OS X through SSH without needing to log in to desktop
Is there a way to start the Dropbox syncing client through SSH?
I already have the desktop version of Dropbox installed. However, I am using SSH to connect to the machine and if I restart the ...
0
votes
1answer
164 views
Mount serial port through ssh connection (Mac/Linux)
I'm working on a MacBook Pro under mountain lion and I would like to mount serial device connected (/dev/ttyUSBx) on a Linux PC under Ubuntu 12.10 through SSH.
I tried with sshfs to mount /dev ...
2
votes
1answer
126 views
How can I make OSX terminal tab names the same as .ssh/config host aliases
Setting up a .ssh/config is a great time saver. The host aliases with user defined names make it easier keep track servers and key files. However, the OSX terminal tab names are displaying what ever ...
0
votes
2answers
44 views
Git Always Prompts for Passphrase
I've followed the following guide to setup SSH keys on Mac OS 10.7.4.
https://help.github.com/articles/generating-ssh-keys
But for some reason it continually prompts me for my passphrase. It doesn't ...
3
votes
1answer
236 views
Sending key via ssh or using mouse to activate Target Display Mode?
Is it possible to send a keystroke via SSH? I want to be able to send CMD+F2 via ssh from/to Mac OSX. If not possible a mouse solution would also be good.
The reason I need this is because I only ...
3
votes
2answers
577 views
Why am I not able to SSH into my laptop?
I upgraded to Mountain Lion and something weitd is happening with accessing my computer via SSH. I am able to SSH into other boxes from my computer but I am not yet able to SSH into my laptop from ...
2
votes
0answers
342 views
Cannot connect to my mac via SSH
I want to open a connection to my mac (10.8) via SSH. An SSH-server is installed by default on OSX. Remote login is enabled, so the service is running and I can connect to to localhost via ssh.
...
1
vote
2answers
90 views
How to set up SSH access without a valid internet IP?
I want to allow other people to ssh into my Mac via login and password, but it does not have a valid internet IP.
How to allow people to ssh when the machine might be at home, in an office, or coffee ...
1
vote
0answers
122 views
Accessing a Time Capsule manually via terminal using iCloud credentials
I'm assuming that the task noted above should be possible, as the task doesn't seem like it should be far different from accessing a Mac computer via SSH or through Go -> Connect to Server on OSX. The ...
0
votes
2answers
91 views
Remove all Mac generated files '._' with bash
I'm trying to find the command to delete recursively all Apple Mac generated files such as '._' from the drive. So far I have:
find . -name '._*' -exec rm -rf {} \;
however it doesn't seem to do ...
0
votes
1answer
119 views
Mac OS X: Make home directory at login via SSH
I have LDAP server on Ubuntu 12.04 and Mac OS X 10.7.5 client configured via Directory Service. The NFSHomeDirectory property mapped to #/Users/$uid$. LDAP users can login to Mac via login screen or ...
1
vote
2answers
44 views
Bash window title not restored after exit
I have a problem with the window title in the Terminal window on OS X:
Start Terminal. Window title is "bash"
Type "ssh external" to connect to an external server. Window title is "user@external:~"
...
1
vote
0answers
133 views
How can I make a persistent ssh tunnel?
I have a Mac laptop and would like to have a persistent ssh tunnel so I can always log in from outside the local network. I'm looking for something that will work when the server can't be reached ...
2
votes
1answer
51 views
Can I remotely monitor printf results of a C program?
I have a long running C program in which I've started from the Terminal.app using:
gdb program_name
gdb run
I'm using many printf statements to monitor the progress of the program. Unfortunately, ...
0
votes
1answer
212 views
Running a remote command through an SSH Tunnel
I am trying to set up an ssh tunnel on my Mac OSX ('osx') to a server ('target') via an interim host ('gateway'). This tunnel needs to have a local (osx) port forward so that my Windows XP VM ('vm') ...
2
votes
1answer
202 views
Using a vnc client through ssh tunnel
Laptop(osx-home network)------>Host1(linux-pc-college network)---->Host2(linux-pc-using vncserver on port 5901, can only be accessed from host1)
I can access host2 through ssh using:
[user@laptop ...
0
votes
0answers
52 views
SSH and mounting share from Ubuntu on Virtualbox onto OsX Lion host
I am looking for a tutorial in order to connect via SSH to my virtualbox from my OsX Lion host as well mounting a shared folder from Ubuntu into the OsX host at the same time.
0
votes
1answer
42 views
When attempting to ssh into a server OSX continually prompts me for the password
I recently moved from pc to mac, essentially all of my keys keep getting the system asking me for a password, the normal pass for the file does not work, advice?
Edit: What the solution ended up ...
0
votes
0answers
203 views
iTerm 2 Profiles/Bookmarks
I know this is supposed to be really simple but for the life of me I can't figure out how to store all of the URL's that I typically log into on the iTerm 2 Profiles page. I come from a PuTTY ...
0
votes
1answer
186 views
Mac OS Snow Leopard SSH client freezes
Strange thing. I'm trying to connect via ssh with command
ssh user@host
It asks correct password for remote host and then nothing happen. I tried to connect to Ubuntu/FreeBSD servers and always got ...
-1
votes
1answer
87 views
Host key verification failed - Linode
I registered new Linode server. I am getting
Host key verification failed
even after clearing up known_hosts file. I had already configured SSH to my friend's Linode server.
0
votes
1answer
30 views
SSH login very slow on OS X Leopard
My SSH sessions take a very long time to initiate. This applies for logins with and without passwords, interactive and non-interactive. I have tried setting 'GSSAPIAuthentication no' and 'IPQoS ...
0
votes
0answers
115 views
key_read: type mismatch: encoding error
Whenever I try and ssh to my Dreamhost server from my Mac OS X machine I get this message:
"key_read: type mismatch: encoding error"
It doesn't seem to cause any problems (it's just a line that's ...
1
vote
1answer
87 views
How do I use rsync to sync my repo on my mac to university server where I have ssh access?
I need to use my university's ssh access and run my programs there for testing. I don't have sudo access there. It doesn't have vncserver there either. I would work with vim and make but I need git at ...
1
vote
0answers
88 views
osx 10.4 - ~/.ssh/id_rsa doesn't work, whereas ~/id_rsa does
I'm having a strange problem with sshing into a remote box with a private key:
$ ssh me@remote
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
$ ssh -i ~/.ssh/id_rsa me@remote
Permission ...
0
votes
1answer
35 views
How could I connect to multiple clients using their SSH settings for the same service?
Say I connect to Amazon's EC2 service for multiple clients, where each client has their own ssh settings and secret keys etc.
Is there a way I could swap the settings for each client?
I'm on OS X.
1
vote
1answer
172 views
SSH to remote OS X computer
I'm trying to ssh into my OS X laptop from my iPad using prompt. I have everything working when I'm on the same network, but when I try to access my computer from an outside network...everything ...
